Permalink
Browse files

Update lua check configuration newer luacheck version

  • Loading branch information...
Alberth289346 committed Apr 4, 2017
1 parent 73570db commit 742091b3dc59b461c82101e79d3f65ae62108310
Showing with 7 additions and 4 deletions.
  1. +6 −3 .luacheckrc
  2. +1 −1 .travis.yml
View
@@ -65,15 +65,18 @@ globals = { -- Globals
"ShakeFistAction", "SpawnAction", "StaffReceptionAction",
"SweepFloorAction", "TapFootAction", "UseObjectAction",
"UseScreenAction", "UseStaffRoomAction", "VaccinateAction",
- "VipGoToNextRoomAction", "VomitAction", "WalkAction", "YawnAction"
+ "VipGoToNextRoomAction", "VomitAction", "WalkAction", "YawnAction",
+
+ -- Math extensions
+ "math.n_random", "math.round", "math.randomdump"
}
-- Set standard globals
std = "lua51+lua52+lua53+luajit"
files["CorsixTH/Luatest"] = {std = "+busted"}
--- Show warning codes
-codes = true
+codes = true -- Show warning codes
+max_line_length = false -- No maximum line length
-- Exclude files and directories
exclude_files = {"CorsixTH/Bitmap", "CorsixTH/Lua/api_version.lua", "LDocGen"}
View
@@ -19,7 +19,7 @@ before_install:
- luarocks --local install lpeg
- luarocks --local install luafilesystem
- luarocks --local install luasocket
- - luarocks --local install luacheck
+ - luarocks --local install luacheck 0.19.1
# Required for lua unit tests
- luarocks --local install busted
- git clone --depth=1 https://github.com/CorsixTH/deps.git $HOME/deps

0 comments on commit 742091b

Please sign in to comment.