diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-14 15:54:21 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-14 15:54:21 +0200 |
commit | 3590c28e73e34649d15c401db7ee6f4142a8a753 (patch) | |
tree | 2f905347a97129679251cc77d53d72291061df4a /.luacheckrc | |
parent | aedd9207b6d7e03bb13fb3866a3d54d32982d12b (diff) | |
download | rspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.tar.gz rspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.zip |
[Minor] Lint Lua plugins & global functions
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', +} |