aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/regexp/drugs.lua4
-rw-r--r--rules/regexp/fraud.lua4
-rw-r--r--rules/regexp/lotto.lua4
-rw-r--r--rules/rspamd.classifiers.lua6
-rw-r--r--src/plugins/lua/hfilter.lua2
-rw-r--r--src/plugins/lua/metric_exporter.lua2
-rw-r--r--src/plugins/lua/replies.lua2
-rw-r--r--test/functional/lua/deps.lua2
8 files changed, 13 insertions, 13 deletions
diff --git a/rules/regexp/drugs.lua b/rules/regexp/drugs.lua
index 8d7b882f6..3a5da68ef 100644
--- a/rules/regexp/drugs.lua
+++ b/rules/regexp/drugs.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/regexp/fraud.lua b/rules/regexp/fraud.lua
index 59e6ad03f..994024028 100644
--- a/rules/regexp/fraud.lua
+++ b/rules/regexp/fraud.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/regexp/lotto.lua b/rules/regexp/lotto.lua
index 03ebdb4ab..b4f926274 100644
--- a/rules/regexp/lotto.lua
+++ b/rules/regexp/lotto.lua
@@ -6,9 +6,9 @@
-- The ASF licenses this file to you under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at:
---
+--
-- http://www.apache.org/licenses/LICENSE-2.0
---
+--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/rules/rspamd.classifiers.lua b/rules/rspamd.classifiers.lua
index 1212fd933..c65ffbb77 100644
--- a/rules/rspamd.classifiers.lua
+++ b/rules/rspamd.classifiers.lua
@@ -59,7 +59,7 @@ local function get_specific_statfiles(classifier, task)
fun.each(function(v) table.insert(spec_st,v) end, st_longsubj)
end
end
-
+
if #spec_st > 1 then
return spec_st
else
@@ -100,7 +100,7 @@ classifiers['bayes'] = function(classifier, task, is_learn)
if not st:get_label() then
local st_l = st:get_param('language')
if st_l and st_l == language then
- -- Insert statfile with specified language
+ -- Insert statfile with specified language
table.insert(selected, st)
end
end
@@ -124,7 +124,7 @@ classifiers['bayes'] = function(classifier, task, is_learn)
if #selected > 1 then
return selected
end
-
+
return nil
end
diff --git a/src/plugins/lua/hfilter.lua b/src/plugins/lua/hfilter.lua
index 0bcff192d..ebd994697 100644
--- a/src/plugins/lua/hfilter.lua
+++ b/src/plugins/lua/hfilter.lua
@@ -288,7 +288,7 @@ local function hfilter(task)
if plen > 0 and url_len > 0 then
local rel = url_len / plen
if rel > 0.8 then
- task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0)
+ task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0)
local lines = plain_text_part:get_lines_count()
if lines > 0 and lines < 2 then
task:insert_result('HFILTER_URL_ONELINE', 1.00)
diff --git a/src/plugins/lua/metric_exporter.lua b/src/plugins/lua/metric_exporter.lua
index 9608fb83f..18812eedd 100644
--- a/src/plugins/lua/metric_exporter.lua
+++ b/src/plugins/lua/metric_exporter.lua
@@ -139,7 +139,7 @@ local backends = {
configure = graphite_config,
push = graphite_push,
},
-}
+}
local function configure_metric_exporter()
local opts = rspamd_config:get_all_opt('metric_exporter')
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index c8e4bb6b6..cb34d4fa7 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -112,7 +112,7 @@ end
local opts = rspamd_config:get_all_opt('replies')
if not (opts and type(opts) == 'table') then
rspamd_logger.infox(rspamd_config, 'module is unconfigured')
- return
+ return
end
if opts then
redis_params = rspamd_parse_redis_server('replies')
diff --git a/test/functional/lua/deps.lua b/test/functional/lua/deps.lua
index 55897091e..6171db699 100644
--- a/test/functional/lua/deps.lua
+++ b/test/functional/lua/deps.lua
@@ -14,7 +14,7 @@ local cb_gen = function(num)
task:insert_result('DEP' .. tostring(num + 1), 1.0)
end
end
-
+
return cb_dep
end