File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -- This file is the config file for the tool named Luacheck
2+ -- Documentation: http://luacheck.readthedocs.io/en/stable/index.html
3+
4+ -- Ignore unused function and loop arguments
5+ unused_args = false
6+
7+ -- Allow self defined globals
8+ allow_defined = true
9+
10+ -- Ignore files / directories
11+ exclude_files =
12+ {
13+ " tests/" , -- CuberitePluginChecker
14+ }
15+
16+ -- Ignore variables, warning codes
17+ ignore =
18+ {
19+ " 113" , -- Accessing an undefined global variable.
20+ " 211" , -- Unused local variable.
21+ " 421" , -- Shadowing a local variable.
22+ " 432" , -- Shadowing an upvalue argument.
23+ " 511" , -- Unreachable code.
24+ }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ dependencies:
99 - sudo luarocks install lsqlite3
1010 - sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
1111 - sudo luarocks install luasocket
12+ - sudo luarocks install luacheck
1213 - git clone --depth=1 https://github.com/cuberite/gallery ~/Gallery
1314 - wget -O ~/InfoReg.lua https://raw.githubusercontent.com/cuberite/cuberite/master/Server/Plugins/InfoReg.lua
1415 - mkdir ~/AutoAPI
@@ -20,3 +21,4 @@ dependencies:
2021test :
2122 override :
2223 - lua CuberitePluginChecker.lua -p ~/Gallery -a ~/AutoAPI -e ~/ManualAPI.lua -i APIImpl/All.lua -s tests/Gallery/FuzzCommands.lua
24+ - luacheck -q .
You can’t perform that action at this time.
0 commit comments