diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2022-02-22 17:01:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 22:01:28 +0000 |
commit | 2b8e6958f40ef36c1508118ac36a43694283a83c (patch) | |
tree | fa9a9b6843546bdb297b00bc78b83ab4c318f724 /lualib/rspamadm | |
parent | 85faeb34719e2b0898d319b02416f669d70f4562 (diff) | |
download | rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.tar.gz rspamd-2b8e6958f40ef36c1508118ac36a43694283a83c.zip |
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r-- | lualib/rspamadm/clickhouse.lua | 2 | ||||
-rw-r--r-- | lualib/rspamadm/configgraph.lua | 10 | ||||
-rw-r--r-- | lualib/rspamadm/configwizard.lua | 2 | ||||
-rw-r--r-- | lualib/rspamadm/mime.lua | 16 |
4 files changed, 15 insertions, 15 deletions
diff --git a/lualib/rspamadm/clickhouse.lua b/lualib/rspamadm/clickhouse.lua index 7f215f6aa..63e025f3e 100644 --- a/lualib/rspamadm/clickhouse.lua +++ b/lualib/rspamadm/clickhouse.lua @@ -165,7 +165,7 @@ local function days_list(days) end local function get_excluded_symbols(known_symbols, correlations, seen_total) - -- Walk results once to collect all symbols & count ocurrences + -- Walk results once to collect all symbols & count occurrences local remove = {} local known_symbols_list = {} diff --git a/lualib/rspamadm/configgraph.lua b/lualib/rspamadm/configgraph.lua index 9afc76cd6..6eef1f42f 100644 --- a/lualib/rspamadm/configgraph.lua +++ b/lualib/rspamadm/configgraph.lua @@ -38,7 +38,7 @@ local function process_filename(fname) return fname end -local function output_dot(opts, nodes, adjastency) +local function output_dot(opts, nodes, adjacency) rspamd_logger.messagex("digraph rspamd {") for k,node in pairs(nodes) do local attrs = {"shape=box"} @@ -62,7 +62,7 @@ local function output_dot(opts, nodes, adjastency) table.concat(attrs, ',')) end end - for _,adj in ipairs(adjastency) do + for _,adj in ipairs(adjacency) do local attrs = {} local skip = false @@ -91,7 +91,7 @@ end local function load_config_traced(opts) local glob_traces = {} - local adjastency = {} + local adjacency = {} local nodes = {} local function maybe_match_glob(file) @@ -105,7 +105,7 @@ local function load_config_traced(opts) end local function add_dep(from, node, args) - adjastency[#adjastency + 1] = { + adjacency[#adjacency + 1] = { from = from, to = node, args = args @@ -157,7 +157,7 @@ local function load_config_traced(opts) os.exit(1) end - output_dot(opts, nodes, adjastency) + output_dot(opts, nodes, adjacency) end diff --git a/lualib/rspamadm/configwizard.lua b/lualib/rspamadm/configwizard.lua index 7c2d67cb5..bfbabbf0f 100644 --- a/lualib/rspamadm/configwizard.lua +++ b/lualib/rspamadm/configwizard.lua @@ -445,7 +445,7 @@ local function check_redis_classifier(cls, changes) end if not symbol_spam or not symbol_ham then - printf("Calssifier has no symbols defined") + printf("Classifier has no symbols defined") return end diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua index 0864af3fb..e5a7e1c01 100644 --- a/lualib/rspamadm/mime.lua +++ b/lualib/rspamadm/mime.lua @@ -381,9 +381,9 @@ local function extract_handler(opts) end if opts.words then - local howw = opts['words_format'] or 'stem' + local how_words = opts['words_format'] or 'stem' table.insert(out_elts[fname], 'meta_words: ' .. - print_words(task:get_meta_words(howw), howw == 'full')) + print_words(task:get_meta_words(how_words), how_words == 'full')) end if opts.text or opts.html then @@ -402,9 +402,9 @@ local function extract_handler(opts) end if opts.words then - local howw = opts['words_format'] or 'stem' - table.insert(out_elts[fname], print_words(part:get_words(howw), - howw == 'full')) + local how_words = opts['words_format'] or 'stem' + table.insert(out_elts[fname], print_words(part:get_words(how_words), + how_words == 'full')) else table.insert(out_elts[fname], tostring(part:get_content(how))) end @@ -416,9 +416,9 @@ local function extract_handler(opts) end if opts.words then - local howw = opts['words_format'] or 'stem' - table.insert(out_elts[fname], print_words(part:get_words(howw), - howw == 'full')) + local how_words = opts['words_format'] or 'stem' + table.insert(out_elts[fname], print_words(part:get_words(how_words), + how_words == 'full')) else if opts.structure then local hc = part:get_html() |