Skip to content

Commit aa6f40f

Browse files
committed
makefile: support command lint .
1 parent 623f85e commit aa6f40f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ install:
1414

1515
test:
1616
PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r $(test)
17+
18+
### lint: Lint Lua source code
19+
.PHONY: lint
20+
lint:
21+
luacheck -q lib
22+
lj-releng lib/resty/*.lua
23+
lj-releng lib/resty/ngxvar/*.lua

0 commit comments

Comments
 (0)