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 /.luacheckrc | |
| 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
Diffstat (limited to '.luacheckrc')
| -rw-r--r-- | .luacheckrc | 16 |
1 files changed, 16 insertions, 0 deletions
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", +} |
