chore(*) update linter, add makefile

This commit is contained in:
Thijs Schreijer
2023-09-06 16:52:54 +02:00
parent ebbdef7593
commit b8147d8e6b
8 changed files with 212 additions and 57 deletions

View File

@@ -1,35 +1,31 @@
--std = "ngx_lua+busted"
unused_args = false
redefined = false
max_line_length = false
globals = {
--"_KONG",
--"kong",
--"ngx.IS_CLI",
-- "ngx",
}
not_globals = {
-- deprecated Lua 5.0 functions
"string.len",
"table.getn",
}
ignore = {
--"6.", -- ignore whitespace warnings
include_files = {
"**/*.lua",
"**/*.rockspec",
".busted",
".luacheckrc",
}
include_files = {
"**/*.lua",
"*.rockspec",
".busted",
".luacheckrc",
files["spec/**/*.lua"] = {
std = "+busted",
}
exclude_files = {
"here/**",
"samples/**",
-- The Github Actions Lua Environment
".lua",
".luarocks",
".install",
}