mirror of
https://github.com/koreader/koreader
synced 2024-11-04 12:00:25 +00:00
62059f8d68
* This removes support for the following deprecated constants: `DTAP_ZONE_FLIPPING`, `DTAP_ZONE_BOOKMARK`, `DCREREADER_CONFIG_DEFAULT_FONT_GAMMA` * The "Advanced settings" panel now highlights modified values in bold (think about:config in Firefox ;)). * LuaData: Isolate global table lookup shenanigans, and fix a few issues in unused-in-prod codepaths. * CodeStyle: Require module locals for Lua/C modules, too. * ScreenSaver: Actually garbage collect our widget on close (ScreenSaver itself is not an instantiated object). * DateTimeWidget: Code cleanups to ensure child widgets can be GC'ed.
44 lines
1020 B
Lua
44 lines
1020 B
Lua
unused_args = false
|
|
std = "luajit"
|
|
-- ignore implicit self
|
|
self = false
|
|
|
|
globals = {
|
|
"G_reader_settings",
|
|
"G_defaults",
|
|
}
|
|
|
|
read_globals = {
|
|
"_ENV",
|
|
}
|
|
|
|
exclude_files = {
|
|
"frontend/luxl.lua",
|
|
"plugins/newsdownloader.koplugin/lib/handler.lua",
|
|
"plugins/newsdownloader.koplugin/lib/LICENSE_LuaXML",
|
|
"plugins/newsdownloader.koplugin/lib/xml.lua",
|
|
"plugins/newsdownloader.koplugin/lib/LICENCE_lua-feedparser",
|
|
"plugins/newsdownloader.koplugin/lib/dateparser.lua",
|
|
}
|
|
|
|
-- don't balk on busted stuff in spec
|
|
files["spec/unit/*"].std = "+busted"
|
|
files["spec/unit/*"].globals = {
|
|
"match", -- can be removed once luacheck 0.24.0 or higher is used
|
|
"package",
|
|
"requireBackgroundRunner",
|
|
"stopBackgroundRunner",
|
|
"notifyBackgroundJobsUpdated",
|
|
}
|
|
|
|
-- TODO: clean up and enforce max line width (631)
|
|
-- https://luacheck.readthedocs.io/en/stable/warnings.html
|
|
-- 211 - Unused local variable
|
|
-- 631 - Line is too long
|
|
ignore = {
|
|
"211/__*",
|
|
"231/__",
|
|
"631",
|
|
"dummy",
|
|
}
|