Skip to content

Commit 3eb8213

Browse files
committed
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.
1 parent 5023490 commit 3eb8213

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/linters/.codespellrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
skip =
44
lgsm/data/*.csv,
55
package-lock.json,
6-
node_modules
6+
*/package-lock.json,
7+
node_modules,
8+
*/node_modules/*
79

810
# Ignore common identifiers/acronyms and extensions used throughout LinuxGSM
911
ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v5
2929
with:
30-
# super-linter needs the full git history to get the
31-
# list of files that changed across commits
32-
fetch-depth: 0
30+
# Shallow clone reduces transient fetch failures (HTTP 500) from GitHub.
31+
# We lint the whole codebase instead of relying on git history.
32+
fetch-depth: 1
33+
fetch-tags: false
3334
persist-credentials: false
3435

3536
- name: Install Prettier plugins (for summary formatting)
@@ -41,11 +42,13 @@ jobs:
4142
env:
4243
# To report GitHub Actions status checks
4344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
VALIDATE_ALL_CODEBASE: true
4446
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
4547
VALIDATE_JSCPD: false
4648
VALIDATE_JSON_PRETTIER: false
4749
VALIDATE_MARKDOWN_PRETTIER: false
4850
VALIDATE_NATURAL_LANGUAGE: false
51+
VALIDATE_PYTHON_RUFF_FORMAT: false
4952
VALIDATE_SHELL_SHFMT: false
5053
VALIDATE_TERRAFORM_TERRASCAN: false
5154
VALIDATE_YAML_PRETTIER: false

0 commit comments

Comments
 (0)