Skip to content

Commit 4c5e1f1

Browse files
committed
[luacheck] Introduce ignores using luacheckrc
Allows the use of _ in loop variables in order to keep readability whilst ignoring the "unused loop variable" warning Ignores globals which are required to setup unit tests
1 parent f321b12 commit 4c5e1f1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.luacheckrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ignore = {"213/_.*"} -- unused Loop Variables beginning with underscore
2+
files["openwisp-config/tests"] = {
3+
ignore = {"11./Test.*"} -- globals relating to defining unittests
4+
}

0 commit comments

Comments
 (0)