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 /rules | |
parent | aedd9207b6d7e03bb13fb3866a3d54d32982d12b (diff) | |
download | rspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.tar.gz rspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.zip |
[Minor] Lint Lua plugins & global functions
Diffstat (limited to 'rules')
-rw-r--r-- | rules/html.lua | 2 | ||||
-rw-r--r-- | rules/misc.lua | 2 | ||||
-rw-r--r-- | rules/rspamd.classifiers.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/rules/html.lua b/rules/html.lua index bedf0cc61..25578723e 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -182,7 +182,7 @@ rspamd_config.R_WHITE_ON_WHITE = { normal_len = p:get_length() local hc = p:get_html() -- we get HTML context - hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag, _) + hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag) local bl = tag:get_extra() if bl then if bl['bgcolor'] and bl['color'] and bl['visible'] then diff --git a/rules/misc.lua b/rules/misc.lua index 53e8a66f8..89ba97fb1 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -51,7 +51,7 @@ end rspamd_config.SUBJ_ALL_CAPS = { callback = function(task) - local caps_test = function(sbj, _) + local caps_test = function(sbj) return util.is_uppercase(sbj) end return test_subject(task, caps_test, 1.0/40.0) diff --git a/rules/rspamd.classifiers.lua b/rules/rspamd.classifiers.lua index ad8ca8d4b..1fb10a2f8 100644 --- a/rules/rspamd.classifiers.lua +++ b/rules/rspamd.classifiers.lua @@ -67,7 +67,7 @@ local function get_specific_statfiles(classifier, task) end end -classifiers['bayes'] = function(classifier, task, is_learn, _) +classifiers['bayes'] = function(classifier, task, is_learn) -- Subfunction for detection of message's language local detect_language = function() local parts = task:get_text_parts() |