From 0fef02e0296dda6aa5aaf0dac6a6da44d4e1fc25 Mon Sep 17 00:00:00 2001 From: Wesley Ray Date: Thu, 12 Jun 2025 08:45:04 -0400 Subject: [PATCH] Taming the linter again again --- .luacheckrc | 14 -------------- spec/.luacheckrc | 13 +++++++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100755 spec/.luacheckrc diff --git a/.luacheckrc b/.luacheckrc index 5c1fac5..97d783a 100755 --- a/.luacheckrc +++ b/.luacheckrc @@ -35,18 +35,4 @@ 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 diff --git a/spec/.luacheckrc b/spec/.luacheckrc new file mode 100755 index 0000000..4da98c2 --- /dev/null +++ b/spec/.luacheckrc @@ -0,0 +1,13 @@ +-- .luacheckrc (Test-specific rules) + +-- This configuration adds new globals for the Busted framework. +-- It automatically inherits all settings from the parent .luacheckrc file. +read_globals = { + 'describe', + 'it', + 'assert', -- Busted extends the standard assert library. + 'before_each', + 'after_each', + 'setup', + 'teardown' +} \ No newline at end of file