mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add Travis CI with luacheck
This commit is contained in:
parent
07cd0b4d8c
commit
1ce1c73249
3 changed files with 28 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
doc/tags
|
doc/tags
|
||||||
|
.luacheckcache
|
||||||
|
|
|
||||||
16
.luacheckrc
Normal file
16
.luacheckrc
Normal file
|
|
@ -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",
|
||||||
|
}
|
||||||
11
.travis.yml
Normal file
11
.travis.yml
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue