]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move shellcheck RC from root to workflow config; disable JSCPD (#3904)
authorTerry Burton <tez@terryburton.co.uk>
Tue, 2 Feb 2021 17:13:50 +0000 (17:13 +0000)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 17:13:50 +0000 (17:13 +0000)
.github/workflows/super-linter.yml
.shellcheckrc [deleted file]

index 76536afa4c58d89161f5923366c20807c88dd7a4..17798a4e42587545a16f1bab1d3e01b8901a6daf 100644 (file)
@@ -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 (file)
index 1185f6e..0000000
+++ /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