Only check files in the scripts folder and adjusted settings.
This commit is contained in:
parent
cddec4ab3f
commit
9bf086c709
1 changed files with 6 additions and 10 deletions
12
.luacheckrc
12
.luacheckrc
|
@ -1,18 +1,14 @@
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
|
|
||||||
redefined = false -- Ignore local variables defined twice in the same scope.
|
include_files = {
|
||||||
unused_args = false -- Ignore unused arguments and loop variables.
|
"**/scripts/",
|
||||||
unused_secondaries = false -- Ignore unused values coming from a call of a multi-value function together with used ones.
|
|
||||||
allow_defined = true -- Allow defining globals implicitly by setting them.
|
|
||||||
allow_defined_top = true
|
|
||||||
|
|
||||||
exclude_files = {
|
|
||||||
".luacheckrc",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore = {
|
ignore = {
|
||||||
"12.", -- ignore "Setting a read-only global variable/Setting a read-only field of a global variable."
|
"12.", -- ignore "Setting a read-only global variable/Setting a read-only field of a global variable."
|
||||||
"542", -- disable warnings for empty if branches. These are useful sometime and easy to notice otherwise.
|
"542", -- disable warnings for empty if branches. These are useful sometime and easy to notice otherwise.
|
||||||
|
"21./.*_", -- disable unused warnings for variables ending with _
|
||||||
|
"211/vmf", -- Disable warnings about unused mod object
|
||||||
"212/self", -- Disable unused self warnings.
|
"212/self", -- Disable unused self warnings.
|
||||||
"611", -- disable "line contains only whitespace"
|
"611", -- disable "line contains only whitespace"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue