diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-05 20:45:46 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-06 11:15:17 +0200 |
| commit | 27d7a0ffff1623572a642f3e45db3fc556dafec3 (patch) | |
| tree | 2eef90da375b82a85b30bf5e996f53054cb3f4cb /scripts | |
| parent | Allow arbitrary query files in locals.lua (diff) | |
| download | nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar.gz nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar.bz2 nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar.lz nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar.xz nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.tar.zst nvim-treesitter-27d7a0ffff1623572a642f3e45db3fc556dafec3.zip | |
Add style-check script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/pre-push | 7 | ||||
| -rwxr-xr-x | scripts/style-check.sh | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/pre-push b/scripts/pre-push new file mode 100755 index 000000000..00d4c5071 --- /dev/null +++ b/scripts/pre-push @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Can be used as a pre-push hook +# Just symlink this file to .git/hooks/pre-push + +echo "Running style check..." +./scripts/style-check.sh diff --git a/scripts/style-check.sh b/scripts/style-check.sh new file mode 100755 index 000000000..181ab4581 --- /dev/null +++ b/scripts/style-check.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +luacheck `find -name "*.lua"` --codes |
