From da83f5296a9e41bc55c8a5bd83fdc3bfd7bf5f54 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 14 Nov 2016 20:39:16 +0200 Subject: [Minor] Lint rspamadm & test suite scripts --- .luacheckrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc index 2eb10ce1a..2f656c124 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -2,11 +2,16 @@ codes = true std = 'min' exclude_files = { + '/**/contrib/**', + '/**/test/lua/**', } globals = { + 'check_header_delimiter_empty', + 'check_header_delimiter_tab', 'classifiers', 'config', + 'kmail_msgid', 'rspamd_config', 'rspamd_count_metatokens', 'rspamd_gen_metatokens', @@ -21,13 +26,12 @@ globals = { 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', } + +files['/**/src/rspamadm/*'].globals = { + 'ansicolors', + 'getopt', +} -- cgit v1.2.3