update CI to use the official glualint action [skip ci]

This commit is contained in:
techbot 2023-10-27 18:18:54 +02:00
parent 8b98f8e0a1
commit 4c1f357717
5 changed files with 26 additions and 29 deletions

View File

@ -7,17 +7,4 @@ on:
jobs: jobs:
lua-lint: lua-lint:
runs-on: ubuntu-latest uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master
steps:
- name: Checkout
uses: actions/checkout@v2
- name: GLua Linter
uses: TASSIA710/action-glua-lint@v1.1.4
with:
lint_maxScopeDepth: 0
lint_deprecated: false
lint_emptyBlocks: false
lint_unusedParameters: false
lint_unusedLoopVars: false
lint_shadowing: false

View File

@ -13,7 +13,7 @@ jobs:
update-workshop: update-workshop:
if: github.repository == 'CapsAdmin/pac3' if: github.repository == 'CapsAdmin/pac3'
needs: linter # needs: linter
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

8
.glualint.json Normal file
View File

@ -0,0 +1,8 @@
{
"lint_maxScopeDepth": 0,
"lint_shadowing": false,
"lint_spaceAfterComma": true,
"lint_ignoreFiles": [
"lua/entities/gmod_wire_expression2/*"
]
}

View File

@ -4,18 +4,19 @@
"tags" : [ "fun", "roleplay" ], "tags" : [ "fun", "roleplay" ],
"ignore" : "ignore" :
[ [
".gitignore",
".editorconfig", ".editorconfig",
".git*", ".git*",
".gitignore",
".glualint.json",
".vscode/*", ".vscode/*",
"*.txt",
"*.md",
"*.bat",
"*.sh",
"icon.jpg",
"*.7z", "*.7z",
"*.bat",
"*.md", "*.md",
"*.md",
"*.sh",
"*.txt",
"*.yml", "*.yml",
"COPYING" "COPYING",
"icon.jpg"
] ]
} }

View File

@ -4,18 +4,19 @@
"tags" : [ "fun", "roleplay" ], "tags" : [ "fun", "roleplay" ],
"ignore" : "ignore" :
[ [
".gitignore",
".editorconfig", ".editorconfig",
".git*", ".git*",
".gitignore",
".glualint.json",
".vscode/*", ".vscode/*",
"*.txt",
"*.md",
"*.bat",
"*.sh",
"icon.jpg",
"*.7z", "*.7z",
"*.bat",
"*.md", "*.md",
"*.md",
"*.sh",
"*.txt",
"*.yml", "*.yml",
"COPYING" "COPYING",
"icon.jpg"
] ]
} }