From d542a4417ddb4dbaee4296c552cea9035773604d Mon Sep 17 00:00:00 2001 From: cn Date: Tue, 29 Jan 2019 14:03:22 +0100 Subject: [PATCH] Move luacheck configuration into rc file --- .luacheckrc | 3 +++ README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..44e064a --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,3 @@ +globals = { 'ngx' } +max_line_length = false +include_files = { '*.lua' } diff --git a/README.md b/README.md index 6d97b42..644fc76 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ If the Nginx worker elected (on Nginx startup) to run the submission loop is kil apt-get install luarocks # on Debian luarocks --local install luacheck -luacheck --globals ngx --no-max-line-length -- metrics_graphite.lua +luacheck . ``` ## License