2015-04-27 00:43:32 +00:00
|
|
|
unused_args = false
|
|
|
|
std = "luajit"
|
2016-03-29 07:56:29 +00:00
|
|
|
-- ignore implicit self
|
|
|
|
self = false
|
2015-04-27 00:43:32 +00:00
|
|
|
|
|
|
|
globals = {
|
|
|
|
"G_reader_settings",
|
2022-09-27 23:10:50 +00:00
|
|
|
"G_defaults",
|
2015-04-27 00:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
read_globals = {
|
2016-11-08 05:24:34 +00:00
|
|
|
"_ENV",
|
2015-04-27 00:43:32 +00:00
|
|
|
}
|
2016-02-10 07:01:52 +00:00
|
|
|
|
|
|
|
exclude_files = {
|
|
|
|
"frontend/luxl.lua",
|
2017-04-19 15:59:45 +00:00
|
|
|
"plugins/newsdownloader.koplugin/lib/handler.lua",
|
2018-04-12 14:05:50 +00:00
|
|
|
"plugins/newsdownloader.koplugin/lib/LICENSE_LuaXML",
|
2017-04-19 15:59:45 +00:00
|
|
|
"plugins/newsdownloader.koplugin/lib/xml.lua",
|
2018-04-12 14:05:50 +00:00
|
|
|
"plugins/newsdownloader.koplugin/lib/LICENCE_lua-feedparser",
|
|
|
|
"plugins/newsdownloader.koplugin/lib/dateparser.lua",
|
2016-02-10 07:01:52 +00:00
|
|
|
}
|
2017-03-05 07:30:26 +00:00
|
|
|
|
2017-08-08 20:35:40 +00:00
|
|
|
-- don't balk on busted stuff in spec
|
|
|
|
files["spec/unit/*"].std = "+busted"
|
|
|
|
files["spec/unit/*"].globals = {
|
2021-10-24 13:31:22 +00:00
|
|
|
"match", -- can be removed once luacheck 0.24.0 or higher is used
|
2017-08-08 20:35:40 +00:00
|
|
|
"package",
|
|
|
|
"requireBackgroundRunner",
|
|
|
|
"stopBackgroundRunner",
|
2020-08-31 14:48:29 +00:00
|
|
|
"notifyBackgroundJobsUpdated",
|
2017-08-08 20:35:40 +00:00
|
|
|
}
|
|
|
|
|
2017-03-05 07:30:26 +00:00
|
|
|
-- TODO: clean up and enforce max line width (631)
|
2018-08-15 19:56:35 +00:00
|
|
|
-- https://luacheck.readthedocs.io/en/stable/warnings.html
|
|
|
|
-- 211 - Unused local variable
|
|
|
|
-- 631 - Line is too long
|
|
|
|
ignore = {
|
|
|
|
"211/__*",
|
2019-07-17 13:15:21 +00:00
|
|
|
"231/__",
|
2018-08-15 19:56:35 +00:00
|
|
|
"631",
|
2018-12-13 06:27:49 +00:00
|
|
|
"dummy",
|
2018-08-15 19:56:35 +00:00
|
|
|
}
|