diff --git a/.luacheckrc b/.luacheckrc index 97d783a..3113389 100755 --- a/.luacheckrc +++ b/.luacheckrc @@ -19,10 +19,22 @@ read_globals = { "next", "rawget" } + +files['spec/'].read_globals = { + 'describe', + 'it', + 'assert', -- Busted extends the standard assert library. + 'before_each', + 'after_each', + 'setup', + 'teardown' +} + exclude_files = { "lib/", "src/" } + -- Ignore specific, non-critical warnings by their numeric code. -- 111: Line is too long -- 211: Unused variable