Browse Source

feat(ci): using .luacheckrc

factor2
Werner Fleischer 2 years ago
parent
commit
e6eba3536a
2 changed files with 9 additions and 2 deletions
  1. 1
    2
      .github/workflows/ci-lua.yml
  2. 8
    0
      .luacheckrc

+ 1
- 2
.github/workflows/ci-lua.yml View File

@@ -17,8 +17,7 @@ jobs:
17 17
 
18 18
     - name: Check lua codes
19 19
       run: |
20
-        set -o pipefail
21
-        luacheck -q -gur -i 581 --no-max-line-length --no-color --formatter plain $(find -name '*.lua') | awk -F: '
20
+        set -o pipefail && luacheck . | awk -F: '
22 21
           {
23 22
             print $0
24 23
             printf "::warning file=%s,line=%s,col=%s::%s\n", $1, $2, $3, $4

+ 8
- 0
.luacheckrc View File

@@ -0,0 +1,8 @@
1
+global = false
2
+unused = false
3
+redefined = false
4
+ignore = { "581" }
5
+max_line_length = false
6
+color = false
7
+formatter = "plain"
8
+quiet = 1

Loading…
Cancel
Save