From 358aafea6ed8f3b85a4399325593dcb38bdd10eb Mon Sep 17 00:00:00 2001 From: SupinePandora43 Date: Thu, 11 Jun 2020 15:17:26 +0500 Subject: [PATCH] Linter (#20) Updated: Readme addon name correction Added: GLua lint --- .github/workflows/glualint.yml | 17 +++++++++++++++++ glualint.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/glualint.yml create mode 100644 glualint.json diff --git a/.github/workflows/glualint.yml b/.github/workflows/glualint.yml new file mode 100644 index 0000000..a948639 --- /dev/null +++ b/.github/workflows/glualint.yml @@ -0,0 +1,17 @@ +name: CI +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Download glualint + run: | + wget -O glualint.zip https://github.com/FPtje/GLuaFixer/releases/download/1.11.1/glualint-1.11.1-linux.zip + unzip glualint.zip + - name: Lint + run: ./glualint . diff --git a/glualint.json b/glualint.json new file mode 100644 index 0000000..3158589 --- /dev/null +++ b/glualint.json @@ -0,0 +1,31 @@ +{ + "lint_maxScopeDepth": 10, + "lint_syntaxErrors": true, + "lint_syntaxInconsistencies": true, + "lint_deprecated": true, + "lint_trailingWhitespace": true, + "lint_whitespaceStyle": true, + "lint_beginnerMistakes": true, + "lint_emptyBlocks": true, + "lint_shadowing": true, + "lint_gotos": true, + "lint_doubleNegations": true, + "lint_redundantIfStatements": true, + "lint_redundantParentheses": true, + "lint_duplicateTableKeys": true, + "lint_profanity": true, + "lint_unusedVars": true, + "lint_unusedParameters": false, + "lint_unusedLoopVars": false, + "lint_ignoreFiles": [], + + "prettyprint_spaceAfterParens": false, + "prettyprint_spaceAfterBrackets": false, + "prettyprint_spaceAfterBraces": false, + "prettyprint_spaceBeforeComma": false, + "prettyprint_spaceAfterComma": false, + "prettyprint_semicolons": false, + "prettyprint_cStyle": false, + "prettyprint_rejectInvalidCode": false, + "prettyprint_indentation": " " +}