diff options
Diffstat (limited to '.luacheckrc')
-rw-r--r-- | .luacheckrc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 000000000..5269a4dcc --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,36 @@ +codes = true +std = 'min' + +exclude_files = { + '/**/src/plugins/lua/fann_classifier.lua', + '/**/src/plugins/lua/fann_scores.lua', + '/**/src/plugins/lua/fann_redis.lua', +} + +globals = { + 'classifiers', + 'config', + 'rspamd_config', + 'rspamd_count_metatokens', + 'rspamd_gen_metatokens', + 'rspamd_parse_redis_server', + 'rspamd_paths', + 'rspamd_plugins', + 'rspamd_redis_make_request', + 'rspamd_str_split', + 'rspamd_version', +} + +ignore = { +} + +files['/**/rules/regexp/headers.lua'].globals = { + 'check_header_delimiter_empty', + 'check_header_delimiter_tab', + 'kmail_msgid', +} + +files['/**/src/plugins/lua/spamassassin.lua'].globals = { + 'ffi', + 'jit', +} |