Taming the linter again again
This commit is contained in:
-14
@@ -36,17 +36,3 @@ ignore = {
|
||||
"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'
|
||||
}
|
||||
}
|
||||
Executable
+13
@@ -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'
|
||||
}
|
||||
Reference in New Issue
Block a user