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