.luacheckrc
author Kim Alvefur <zash@zash.se>
Sat, 28 Jan 2017 17:02:28 +0100
changeset 7875 3105d35cc2c2
parent 7482 a82f88db12f7
child 7951 ed99a8e3c260
permissions -rw-r--r--
luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation)

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" }

files["core/"] = {
	ignore = { "122/prosody", "122/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",
	};
}