summaryrefslogtreecommitdiff
path: root/Data/Libraries/luaunit/.luacheckrc
blob: 5c14b7fac981378705fdb02ce2753e65478d7878 (plain)
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", "os"},
    },
    ["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" } 
    }
}