]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Trim whitespace 1152/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 18 Nov 2016 18:06:22 +0000 (20:06 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 18 Nov 2016 18:06:22 +0000 (20:06 +0200)
rules/regexp/drugs.lua
rules/regexp/fraud.lua
rules/regexp/lotto.lua
rules/rspamd.classifiers.lua
src/plugins/lua/hfilter.lua
src/plugins/lua/metric_exporter.lua
src/plugins/lua/replies.lua
test/functional/lua/deps.lua

index 8d7b882f69215987b4df18ef1a6c0be8fe540fb1..3a5da68efe38cec6f128f442b49b331f4165f680 100644 (file)
@@ -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.
index 59e6ad03f443b40f4d762a569729419e140a9f45..994024028defc9fa333e0d81feb2bf81ed35ffc3 100644 (file)
@@ -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.
index 03ebdb4ab784f0afc0118fbd2cdfe26c16aa9ad3..b4f9262745a75497b4d2b86fb2e748e4d0ae0fa9 100644 (file)
@@ -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.
index 1212fd933629fe55361301ec192b749552b56cc8..c65ffbb7751962ebef5cbfc8713a737fe9d3344c 100644 (file)
@@ -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
 
index 0bcff192d58ca637ed9172f95e5e687b904659b0..ebd99469789090adf6b4c84a1325c6ec27029357 100644 (file)
@@ -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)
index 9608fb83faa8ebef726f73af275d8787b9fa4a15..18812eedd81e81b5fcd26adaffb8307602325b25 100644 (file)
@@ -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')
index c8e4bb6b6dfdcdd9e2943e427e5bb4bf51c932c0..cb34d4fa716dde2d414dbb9a33811b2893b861f7 100644 (file)
@@ -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')
index 55897091e9dd17c93f95bfa31122c15d99f0f8c7..6171db699553544f3d1f53d0cb72029c931040b5 100644 (file)
@@ -14,7 +14,7 @@ local cb_gen = function(num)
       task:insert_result('DEP' .. tostring(num + 1), 1.0)
     end
   end
-  
+
   return cb_dep
 end