diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-04 18:04:32 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-05 19:21:06 +0200 |
| commit | 1ce1c73249cf5620726f9b00fd58cac1747b1e70 (patch) | |
| tree | 0167a465c36734164a8155d253d9f39a9a5e7bf0 | |
| parent | C++ locals: Add reference_declarator (analogous to pointer_declarator for C l... (diff) | |
| download | nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar.gz nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar.bz2 nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar.lz nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar.xz nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.tar.zst nvim-treesitter-1ce1c73249cf5620726f9b00fd58cac1747b1e70.zip | |
Add Travis CI with luacheck
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .luacheckrc | 16 | ||||
| -rw-r--r-- | .travis.yml | 11 |
3 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 926ccaaf9..7ac6d5b04 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ doc/tags +.luacheckcache diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 000000000..cb61432f9 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,16 @@ +-- Rerun tests only if their modification time changed. +cache = true + +-- Glorious list of warnings: https://luacheck.readthedocs.io/en/stable/warnings.html +ignore = { + "212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off. + "411", -- Redefining a local variable. + "412", -- Redefining an argument. + "422", -- Shadowing an argument + "122" -- Indirectly setting a readonly global +} + +-- Global objects defined by the C code +read_globals = { + "vim", +} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..a6749df1e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ + +language: c +dist: bionic +before_install: + - sudo apt-get update + - sudo add-apt-repository universe + - sudo apt install luarocks -y + - sudo luarocks install luacheck + +script: + - luacheck **/**/*.lua --codes |
