aboutsummaryrefslogtreecommitdiffstats
path: root/.luacheckrc
blob: 0040cfbbb4b33812f0f542e08b5b450b5653a96c (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
27
28
29
30
31
cache = true
read_globals = { "prosody", "hosts", "import" }
globals = { "_M" }
allow_defined_top = true
module = true
unused_secondaries = false
codes = true
ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" }

max_line_length = 150

files["core/"] = {
	read_globals = { "prosody", "hosts" };
	globals = { "prosody.hosts.?", "hosts.?" };
}
files["plugins/"] = {
	globals = { "module" };
}
files["tests/"] = {
	read_globals = {
		"testlib_new_env",
		"assert_equal",
		"assert_table",
		"assert_function",
		"assert_string",
		"assert_boolean",
		"assert_is",
		"assert_is_not",
		"runtest",
	};
}