forked from bluebird75/luaunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
26 lines (24 loc) · 794 Bytes
/
.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
--[[
Luacheck configuration
(see http://luacheck.readthedocs.io/en/stable/config.html)
Thanks to Peter Melnichenko for providing an example file for LuaUnit.
]]
only = {"1"} -- limit checks to the use of global variables
std = "max"
self = false
ignore = {"[Tt]est[%w_]+"}
files = {
["luaunit.lua"] = {
globals = {"EXPORT_ASSERT_TO_GLOBALS", "LuaUnit"},
},
["test/compat_luaunit_v2x.lua"] = {
ignore = {"EXPORT_ASSERT_TO_GLOBALS", "assert[%w_]+", "v", "y"}
},
["test/legacy_example_with_luaunit.lua"] = {
ignore = {"LuaUnit", "EXPORT_ASSERT_TO_GLOBALS",
"assertEquals", "assertNotEquals", "assertTrue", "assertFalse"}
},
["test/test_luaunit.lua"] = {
ignore = {"TestMock", "TestLuaUnit%a+", "MyTest%w+", "v", "y" }
}
}