File

.luacheckrc @ 7478:2489abe342c1

luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Jul 2016 10:08:35 +0800
parent 7476:42d8955be784
child 7479:a82f88db12f7
line wrap: on
line source

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["plugins/"] = {
	ignore = { "122/module" };
}
files["tests/"] = {
	read_globals = {
		"testlib_new_env",
		"assert_equal",
		"assert_table",
		"assert_function",
		"assert_string",
		"assert_boolean",
		"assert_is",
		"assert_is_not",
		"runtest",
	};
}