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",
|
|
|
|
}
|
|
|
|
|
|
|
|
read_globals = {
|
2016-11-08 05:24:34 +00:00
|
|
|
"_ENV",
|
2016-02-16 07:10:07 +00:00
|
|
|
"KOBO_TOUCH_MIRRORED",
|
|
|
|
"KOBO_SYNC_BRIGHTNESS_WITH_NICKEL",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DHINTCOUNT",
|
|
|
|
"DRENDER_MODE",
|
|
|
|
"DGLOBAL_CACHE_SIZE_MINIMUM",
|
|
|
|
"DGLOBAL_CACHE_FREE_PROPORTION",
|
|
|
|
"DGLOBAL_CACHE_SIZE_MAXIMUM",
|
|
|
|
"DBACKGROUND_COLOR",
|
|
|
|
"DOUTER_PAGE_COLOR",
|
2020-12-19 11:18:30 +00:00
|
|
|
"DGENERIC_ICON_SIZE",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DCREREADER_VIEW_MODE",
|
|
|
|
"DSHOWOVERLAP",
|
|
|
|
"DSHOWHIDDENFILES",
|
|
|
|
"DLANDSCAPE_CLOCKWISE_ROTATION",
|
|
|
|
"DCREREADER_TWO_PAGE_THRESHOLD",
|
|
|
|
"DOVERLAPPIXELS",
|
|
|
|
"FOLLOW_LINK_TIMEOUT",
|
|
|
|
"DTAP_ZONE_MENU",
|
2020-12-03 16:33:54 +00:00
|
|
|
"DTAP_ZONE_MENU_EXT",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DTAP_ZONE_CONFIG",
|
2020-12-03 16:33:54 +00:00
|
|
|
"DTAP_ZONE_CONFIG_EXT",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DTAP_ZONE_MINIBAR",
|
|
|
|
"DTAP_ZONE_FORWARD",
|
|
|
|
"DTAP_ZONE_BACKWARD",
|
|
|
|
"DTAP_ZONE_BOOKMARK",
|
|
|
|
"DTAP_ZONE_FLIPPING",
|
2019-04-07 17:00:15 +00:00
|
|
|
"DTAP_ZONE_TOP_LEFT",
|
|
|
|
"DTAP_ZONE_TOP_RIGHT",
|
|
|
|
"DTAP_ZONE_BOTTOM_LEFT",
|
|
|
|
"DTAP_ZONE_BOTTOM_RIGHT",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DDOUBLE_TAP_ZONE_NEXT_CHAPTER",
|
|
|
|
"DDOUBLE_TAP_ZONE_PREV_CHAPTER",
|
|
|
|
"DCHANGE_WEST_SWIPE_TO_EAST",
|
|
|
|
"DCHANGE_EAST_SWIPE_TO_WEST",
|
|
|
|
"DKOPTREADER_CONFIG_FONT_SIZE",
|
|
|
|
"DKOPTREADER_CONFIG_TEXT_WRAP",
|
|
|
|
"DKOPTREADER_CONFIG_TRIM_PAGE",
|
|
|
|
"DKOPTREADER_CONFIG_DETECT_INDENT",
|
|
|
|
"DKOPTREADER_CONFIG_DEFECT_SIZE",
|
|
|
|
"DKOPTREADER_CONFIG_PAGE_MARGIN",
|
|
|
|
"DKOPTREADER_CONFIG_LINE_SPACING",
|
|
|
|
"DKOPTREADER_CONFIG_RENDER_QUALITY",
|
|
|
|
"DKOPTREADER_CONFIG_AUTO_STRAIGHTEN",
|
|
|
|
"DKOPTREADER_CONFIG_JUSTIFICATION",
|
|
|
|
"DKOPTREADER_CONFIG_MAX_COLUMNS",
|
|
|
|
"DKOPTREADER_CONFIG_CONTRAST",
|
|
|
|
"DKOPTREADER_CONFIG_WORD_SPACINGS",
|
|
|
|
"DKOPTREADER_CONFIG_DEFAULT_WORD_SPACING",
|
|
|
|
"DKOPTREADER_CONFIG_DOC_LANGS_TEXT",
|
|
|
|
"DKOPTREADER_CONFIG_DOC_LANGS_CODE",
|
|
|
|
"DKOPTREADER_CONFIG_DOC_DEFAULT_LANG_CODE",
|
|
|
|
"DCREREADER_CONFIG_FONT_SIZES",
|
|
|
|
"DCREREADER_CONFIG_DEFAULT_FONT_SIZE",
|
2019-05-01 00:09:01 +00:00
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_SMALL",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_LARGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_X_LARGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_XX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_XXX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_HUGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_X_HUGE",
|
|
|
|
"DCREREADER_CONFIG_H_MARGIN_SIZES_XX_HUGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_SMALL",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_LARGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_X_LARGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_XX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_XXX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_HUGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_X_HUGE",
|
|
|
|
"DCREREADER_CONFIG_T_MARGIN_SIZES_XX_HUGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_SMALL",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_LARGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_X_LARGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_XX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_XXX_LARGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_HUGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_X_HUGE",
|
|
|
|
"DCREREADER_CONFIG_B_MARGIN_SIZES_XX_HUGE",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DCREREADER_CONFIG_LIGHTER_FONT_GAMMA",
|
|
|
|
"DCREREADER_CONFIG_DEFAULT_FONT_GAMMA",
|
|
|
|
"DCREREADER_CONFIG_DARKER_FONT_GAMMA",
|
2019-03-14 23:34:46 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_TINY",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_TINY",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_XX_SMALL",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_SMALL",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_SMALL",
|
2019-03-14 23:34:46 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_L_SMALL",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_MEDIUM",
|
2019-03-14 23:34:46 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_L_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_XL_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_XXL_MEDIUM",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_LARGE",
|
2019-03-14 23:34:46 +00:00
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_LARGE",
|
|
|
|
"DCREREADER_CONFIG_LINE_SPACE_PERCENT_XX_LARGE",
|
2019-11-28 21:39:06 +00:00
|
|
|
"DCREREADER_CONFIG_WORD_SPACING_SMALL",
|
|
|
|
"DCREREADER_CONFIG_WORD_SPACING_MEDIUM",
|
|
|
|
"DCREREADER_CONFIG_WORD_SPACING_LARGE",
|
2020-05-03 16:06:58 +00:00
|
|
|
"DCREREADER_CONFIG_WORD_EXPANSION_NONE",
|
|
|
|
"DCREREADER_CONFIG_WORD_EXPANSION_SOME",
|
|
|
|
"DCREREADER_CONFIG_WORD_EXPANSION_MORE",
|
2015-04-27 00:43:32 +00:00
|
|
|
"DMINIBAR_CONTAINER_HEIGHT",
|
|
|
|
"DGESDETECT_DISABLE_DOUBLE_TAP",
|
|
|
|
"FRONTLIGHT_SENSITIVITY_DECREASE",
|
|
|
|
"DALPHA_SORT_CASE_INSENSITIVE",
|
|
|
|
"KOBO_LIGHT_ON_START",
|
|
|
|
"NETWORK_PROXY",
|
2016-01-03 09:18:54 +00:00
|
|
|
"DUSE_TURBO_LIB",
|
2020-04-14 17:36:44 +00:00
|
|
|
"STARDICT_DATA_DIR",
|
2015-04-27 00:43:32 +00:00
|
|
|
"cre",
|
|
|
|
"lfs",
|
|
|
|
"lipc",
|
2019-11-15 14:14:36 +00:00
|
|
|
"xtext",
|
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 = {
|
|
|
|
"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
|
|
|
}
|