2016-11-14 14:54:21 +01:00
|
|
|
codes = true
|
|
|
|
std = 'min'
|
|
|
|
|
|
|
|
exclude_files = {
|
2016-11-14 19:39:16 +01:00
|
|
|
'/**/contrib/**',
|
|
|
|
'/**/test/lua/**',
|
2018-01-30 16:06:35 +01:00
|
|
|
'/**/test/functional/lua/miltertest/**',
|
2018-09-05 14:43:21 +02:00
|
|
|
'/**/test/functional/lua/rspamadm/**',
|
2018-09-24 18:20:44 +02:00
|
|
|
'.git/**/',
|
2016-11-14 14:54:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
globals = {
|
|
|
|
'classifiers',
|
|
|
|
'config',
|
2017-04-25 10:50:38 +02:00
|
|
|
'confighelp',
|
2016-11-15 16:38:39 +01:00
|
|
|
'rspamd_classifiers',
|
2016-11-14 14:54:21 +01:00
|
|
|
'rspamd_config',
|
|
|
|
'rspamd_count_metatokens',
|
|
|
|
'rspamd_gen_metatokens',
|
|
|
|
'rspamd_parse_redis_server',
|
|
|
|
'rspamd_paths',
|
2019-03-26 18:32:34 +01:00
|
|
|
'rspamd_env',
|
2016-11-14 14:54:21 +01:00
|
|
|
'rspamd_plugins',
|
|
|
|
'rspamd_redis_make_request',
|
|
|
|
'rspamd_str_split',
|
|
|
|
'rspamd_version',
|
2016-11-24 13:31:04 +01:00
|
|
|
'rspamd_map_add',
|
2017-12-03 14:36:32 +01:00
|
|
|
'rspamd_maps',
|
|
|
|
'rspamd_plugins_state',
|
|
|
|
'rspamadm',
|
2018-10-01 11:56:17 +02:00
|
|
|
'loadstring',
|
|
|
|
'rspamadm_ev_base',
|
|
|
|
'rspamadm_session',
|
2019-04-12 18:14:54 +02:00
|
|
|
'rspamadm_dns_resolver',
|
2020-03-16 12:15:12 +01:00
|
|
|
'jit',
|
|
|
|
'table.unpack',
|
2021-04-30 18:58:00 +02:00
|
|
|
'table.clear',
|
2020-03-16 12:15:12 +01:00
|
|
|
'unpack',
|
2016-11-14 14:54:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ignore = {
|
2017-02-05 16:35:59 +01:00
|
|
|
'212', -- unused argument
|
2017-03-24 22:06:39 +01:00
|
|
|
'612', -- trailing whitespace
|
2018-11-02 10:39:29 +01:00
|
|
|
'311', -- value assigned to variable X is unused
|
2016-11-14 14:54:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
files['/**/src/plugins/lua/spamassassin.lua'].globals = {
|
|
|
|
'ffi',
|
|
|
|
'jit',
|
|
|
|
}
|
2016-11-14 19:39:16 +01:00
|
|
|
|
2017-04-25 17:19:29 +02:00
|
|
|
files['/**/src/plugins/lua/greylist.lua'].globals = {
|
|
|
|
'math.ifloor',
|
|
|
|
}
|
2019-05-15 15:45:40 +02:00
|
|
|
files['/**/src/plugins/lua/reputation.lua'].globals = {
|
|
|
|
'math.tanh',
|
|
|
|
}
|
2017-04-25 17:19:29 +02:00
|
|
|
|
2017-08-30 13:42:12 +02:00
|
|
|
|
2018-09-10 16:19:16 +02:00
|
|
|
files['/**/lualib/lua_redis.lua'].globals = {
|
|
|
|
'rspamadm_ev_base',
|
|
|
|
}
|
|
|
|
|
2016-11-14 19:39:16 +01:00
|
|
|
files['/**/src/rspamadm/*'].globals = {
|
|
|
|
'ansicolors',
|
|
|
|
'getopt',
|
|
|
|
}
|
2018-10-05 13:35:56 +02:00
|
|
|
|
|
|
|
files['test/functional/lua/test_coverage.lua'].globals = {
|
|
|
|
'__GLOBAL_COVERAGE_WATCHDOG'
|
|
|
|
}
|
2018-12-23 17:16:21 +01:00
|
|
|
|
2018-12-25 08:43:41 +01:00
|
|
|
files['/**/rules/'].ignore = {'631'}
|
|
|
|
files['/**/test/functional/'].ignore = {'631'}
|
|
|
|
|
2018-12-23 17:16:21 +01:00
|
|
|
max_string_line_length = 500
|
2019-02-09 23:28:23 +01:00
|
|
|
max_comment_line_length = 500
|