diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 20:05:12 +0100 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 22:59:06 +0100 |
commit | ac83d941419806a546bd2988eac0669269011719 (patch) | |
tree | 31200437991a680fb1bb55b689454849f363908c /.luacheckrc | |
parent | 6f8f8fda06c6fa499484feeb6068b560b13d7859 (diff) | |
download | luasystem-ac83d941419806a546bd2988eac0669269011719.zip |
chore(ci): add linter for tests and rockspecs
Diffstat (limited to '.luacheckrc')
-rw-r--r-- | .luacheckrc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..4dc4ec4 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,32 @@ +unused_args = false +redefined = false +max_line_length = false + +globals = { +-- "ngx", +} + +not_globals = { + -- deprecated Lua 5.0 functions + "string.len", + "table.getn", +} + +include_files = { + "**/*.lua", + "**/*.rockspec", + ".busted", + ".luacheckrc", +} + +files["spec/**/*.lua"] = { + std = "+busted", +} + +exclude_files = { + -- The Github Actions Lua Environment + ".lua", + ".luarocks", + ".install", +} + |