From: Terry Burton Date: Tue, 2 Feb 2021 17:13:50 +0000 (+0000) Subject: Move shellcheck RC from root to workflow config; disable JSCPD (#3904) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ab631a0cd0e4664508500ad01a70fbdeeff738;p=thirdparty%2Ffreeradius-server.git Move shellcheck RC from root to workflow config; disable JSCPD (#3904) --- diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 76536afa4c..17798a4e42 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -18,10 +18,26 @@ jobs: with: fetch-depth: 0 +# +# shellcheck: +# SC2223: This default assignment may cause DoS due to globbing. Quote it. +# Easy to trigger and rarely a concern. +# + - name: Configure the linters + run: | + echo 'disable=SC2223' > .shellcheckrc + echo .shellcheckrc >> .gitignore + +# +# jscpd: +# Disable entirely +# Has a hair trigger and isn't useful enough to warrant tuning +# - name: Lint uses: github/super-linter@v3 env: DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FILTER_REGEX_EXCLUDE: (.*/)?(configure|config\.sub|config\.guess|missing|install-sh|freeradius\.css|toc_focus\.js|asciidoc/sass/.*\.scss) VALIDATE_ALL_CODEBASE: ${{ github.ref == 'refs/heads/linter' }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_JSCPD: false diff --git a/.shellcheckrc b/.shellcheckrc deleted file mode 100644 index 1185f6e3b0..0000000000 --- a/.shellcheckrc +++ /dev/null @@ -1,6 +0,0 @@ -# -# SC2223: This default assignment may cause DoS due to globbing. Quote it. -# -# Easy to trigger and rarely a concern. -# -disable=SC2223