Add style-check script

This commit is contained in:
Stephan Seitz 2020-07-05 20:45:46 +02:00
parent 63c1853674
commit bdf7457c4d
4 changed files with 23 additions and 1 deletions

View file

@ -11,6 +11,18 @@ As you know, `nvim-treesitter` is roughly splitted in two parts :
Depending on which part of the plugin you want to contribute to, please read the appropriate section.
## Style Checks and Tests
We haven't implemented any functionality tests yet. Feel free to contribute.
However, we check code style with `luacheck`!
Please install luacheck and activate our `pre-push` hook to automatically check style before
every push:
```bash
luarocks install luacheck
ln -s ../../scripts/pre-push .git/hooks/pre-push
```
## Parser configurations
Contributing to parser configurations is basically modifying one of the `queries/*/*.scm`.