feat(ci): using .luacheckrc
This commit is contained in:
parent
74bdb7bc3f
commit
e6eba3536a
|
@ -17,8 +17,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check lua codes
|
- name: Check lua codes
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail && luacheck . | awk -F: '
|
||||||
luacheck -q -gur -i 581 --no-max-line-length --no-color --formatter plain $(find -name '*.lua') | awk -F: '
|
|
||||||
{
|
{
|
||||||
print $0
|
print $0
|
||||||
printf "::warning file=%s,line=%s,col=%s::%s\n", $1, $2, $3, $4
|
printf "::warning file=%s,line=%s,col=%s::%s\n", $1, $2, $3, $4
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
global = false
|
||||||
|
unused = false
|
||||||
|
redefined = false
|
||||||
|
ignore = { "581" }
|
||||||
|
max_line_length = false
|
||||||
|
color = false
|
||||||
|
formatter = "plain"
|
||||||
|
quiet = 1
|
Loading…
Reference in New Issue