Skip to content

Commit 7e744b3

Browse files
committed
chore(*) add .editorconfig and .luacheckrc
1 parent d775dd8 commit 7e744b3

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# See http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
charset = utf-8
9+
10+
[*.lua]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[Makefile]
15+
indent_style = tab

.luacheckrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
std = "ngx_lua"
2+
unused_args = false
3+
redefined = false
4+
max_line_length = false
5+
6+
7+
not_globals = {
8+
"string.len",
9+
"table.getn",
10+
}
11+
12+
13+
ignore = {
14+
"6.", -- ignore whitespace warnings
15+
}

lib/resty/healthcheck.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ local id = function(x) return x end
131131
local worker_color = use_color and function(str) return ("\027["..tostring(31 + ngx.worker.pid() % 5).."m"..str.."\027[0m") end or id
132132

133133
-- Debug function
134-
local function dump(...) print(require("pl.pretty").write({...})) end
134+
local function dump(...) print(require("pl.pretty").write({...})) end -- luacheck: ignore 211
135135

136136
local _M = {}
137137

0 commit comments

Comments
 (0)