forked from pallene-lang/pallene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
39 lines (32 loc) · 1.11 KB
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- vim: set filetype=lua : --
-- Luacheck configuration file [1]
--
-- Please install Luacheck to your system with Luarocks:
--
-- luarocks install luacheck
--
-- To run Luackeck, please use our linter script, which also runs additional checks:
--
-- ./run-lint
--
-- For vim integration, I recommend ALE [2]. It supports luacheck out of the box
-- For other editors such as Sublime, Atom, Emacs, Brackets, and VS Code,
-- consult the instructions in the Luacheck documentation [3].
--
-- [1] https://luacheck.readthedocs.io/en/stable/config.html
-- [2] https://github.com/dense-analysis/ale
-- [3] https://github.com/mpeterv/luacheck#editor-support
ignore = {
"211/_.*", -- Unused local variable, when name starts with "_"
"212/_.*", -- Unused argument, when name starts with "_"
"212/self", -- Unused argument "self"
"411/ok", -- Redefining local "ok"
"411/errs?", -- Redefining local "err" or "errs"
"421/ok", -- Shadowing local "ok"
"421/errs?", -- Shadowing local "err" or "errs"
"542", -- Empty if branch.
"6..", -- Whitespace warnings
}
files["spec"] = {
std = "+busted"
}