diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-03-18 12:12:39 +0100 |
|---|---|---|
| committer | Caleb Maclennan <caleb@alerque.com> | 2022-03-19 17:13:15 +0300 |
| commit | f6509d4fd5dfc0363aada9b1653934356e9abd3f (patch) | |
| tree | 096ff6371a05a3ccca08518af9163cb09dece227 | |
| parent | 52b22da7e3361b6927ef7516851239808d54c673 (diff) | |
| download | luasocket-f6509d4fd5dfc0363aada9b1653934356e9abd3f.tar.gz luasocket-f6509d4fd5dfc0363aada9b1653934356e9abd3f.tar.bz2 luasocket-f6509d4fd5dfc0363aada9b1653934356e9abd3f.zip | |
chore: Add luacheck linter project configuration
| -rw-r--r-- | .luacheckrc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..fcec7d5 --- /dev/null +++ b/.luacheckrc | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | unused_args = false | ||
| 2 | redefined = false | ||
| 3 | max_line_length = false | ||
| 4 | |||
| 5 | not_globals = { | ||
| 6 | "string.len", | ||
| 7 | "table.getn", | ||
| 8 | } | ||
| 9 | |||
| 10 | include_files = { | ||
| 11 | "**/*.lua", | ||
| 12 | "**/*.rockspec", | ||
| 13 | ".busted", | ||
| 14 | ".luacheckrc", | ||
| 15 | } | ||
| 16 | |||
| 17 | exclude_files = { | ||
| 18 | "etc/*.lua", | ||
| 19 | "etc/**/*.lua", | ||
| 20 | "test/*.lua", | ||
| 21 | "test/**/*.lua", | ||
| 22 | "samples/*.lua", | ||
| 23 | "samples/**/*.lua", | ||
| 24 | "gem/*.lua", | ||
| 25 | "gem/**/*.lua", | ||
| 26 | -- GH Actions Lua Environment | ||
| 27 | ".lua", | ||
| 28 | ".luarocks", | ||
| 29 | ".install", | ||
| 30 | } | ||
| 31 | |||
