From 442ecd1290037596a666fdda89b915f935853651 Mon Sep 17 00:00:00 2001 From: Wesley Ray Date: Thu, 12 Jun 2025 08:40:16 -0400 Subject: [PATCH] Taming the linter again --- .luacheckrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.luacheckrc b/.luacheckrc index 97d783a..5c1fac5 100755 --- a/.luacheckrc +++ b/.luacheckrc @@ -35,4 +35,18 @@ ignore = { "212", "213", "631" +} + +-- Telling the linter to ignore Busted framework related keywords within the spec dir +['spec/'] = { + -- It inherits the global rules and adds these new ones. + read_globals = { + 'describe', + 'it', + 'assert', -- Busted extends the standard assert library. + 'before_each', -- Adding other common Busted globals for future use. + 'after_each', + 'setup', + 'teardown' + } } \ No newline at end of file