From be8f65608796e50aa2e2da5452849c263558f0ed Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sun, 4 Jul 2021 16:12:17 -0500 Subject: Use stylua for autoformat code (#1480) --- CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbf3c3d26..b89e13ae1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,12 +15,13 @@ Depending on which part of the plugin you want to contribute to, please read the ## Style Checks and Tests We haven't implemented any functional tests yet. Feel free to contribute. -However, we check code style with `luacheck`! +However, we check code style with `luacheck` and `stylua`! Please install luacheck and activate our `pre-push` hook to automatically check style before every push: ```bash luarocks install luacheck +cargo install stylua ln -s ../../scripts/pre-push .git/hooks/pre-push ``` -- cgit v1.2.3-70-g09d2