Skip to content

Commit

Permalink
Update .luacheckrc (#93)
Browse files Browse the repository at this point in the history
Update .luacheckrc to allow defining global variables, but validate global variables
  • Loading branch information
cooljeanius committed Jun 7, 2024
1 parent da9f6ca commit da1448a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ max_line_length=140
codes=true
-- skip showing files with no issues
quiet=1
-- skip showing undefined variable usage
-- there are thousands of warnings here because luacheck is unaware of Wesnoth's
-- checks related to undefined variable usage
-- there can be warnings because luacheck is unaware of Wesnoth's
-- lua environment and has no way to check which have been loaded
global=false
globals={"wesnoth","wml","gui","filesystem","unit_test","stringx","mathx","ai"}
allow_defined=true
-- skip showing unused variables
unused=false
-- skip showing warnings about shadowing upvalues
Expand Down

0 comments on commit da1448a

Please sign in to comment.