Browse Source

Updates Super-Linter configuration

Improves Super-Linter's reliability by switching to linting the entire codebase instead of relying on git history. This change also addresses potential transient fetch failures from GitHub.

Additionally, this commit expands the ignored paths in codespell and disables some linters to improve performance and reduce false positives.
pull/4854/head
Daniel Gibbs 4 months ago
parent
commit
3eb8213aff
Failed to extract signature
  1. 4
      .github/linters/.codespellrc
  2. 9
      .github/workflows/action-super-linter.yml

4
.github/linters/.codespellrc

@ -3,7 +3,9 @@
skip = skip =
lgsm/data/*.csv, lgsm/data/*.csv,
package-lock.json, package-lock.json,
node_modules */package-lock.json,
node_modules,
*/node_modules/*
# Ignore common identifiers/acronyms and extensions used throughout LinuxGSM # Ignore common identifiers/acronyms and extensions used throughout LinuxGSM
ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty

9
.github/workflows/action-super-linter.yml

@ -27,9 +27,10 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
# super-linter needs the full git history to get the # Shallow clone reduces transient fetch failures (HTTP 500) from GitHub.
# list of files that changed across commits # We lint the whole codebase instead of relying on git history.
fetch-depth: 0 fetch-depth: 1
fetch-tags: false
persist-credentials: false persist-credentials: false
- name: Install Prettier plugins (for summary formatting) - name: Install Prettier plugins (for summary formatting)
@ -41,11 +42,13 @@ jobs:
env: env:
# To report GitHub Actions status checks # To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
VALIDATE_JSCPD: false VALIDATE_JSCPD: false
VALIDATE_JSON_PRETTIER: false VALIDATE_JSON_PRETTIER: false
VALIDATE_MARKDOWN_PRETTIER: false VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_NATURAL_LANGUAGE: false VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_PYTHON_RUFF_FORMAT: false
VALIDATE_SHELL_SHFMT: false VALIDATE_SHELL_SHFMT: false
VALIDATE_TERRAFORM_TERRASCAN: false VALIDATE_TERRAFORM_TERRASCAN: false
VALIDATE_YAML_PRETTIER: false VALIDATE_YAML_PRETTIER: false

Loading…
Cancel
Save