-
Notifications
You must be signed in to change notification settings - Fork 14
MegaLinter config: exclude generated files, disable non-applicable linters, fix jscpd threshold #3833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
plengauer
wants to merge
1
commit into
main
Choose a base branch
from
chore/megalinter-config-triage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+55
−0
Open
MegaLinter config: exclude generated files, disable non-applicable linters, fix jscpd threshold #3833
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "threshold": 5, | ||
| "reporters": ["console", "html"], | ||
| "ignore": [ | ||
| "**/node_modules/**", | ||
| "**/.git/**", | ||
| "**/*.lock.yml", | ||
| "**/otlp.json", | ||
| "**/gradlew", | ||
| "**/package-lock.json" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # MegaLinter configuration for Thoth | ||
| # Added following a full triage of the 2026-07-24 Analyze workflow run. | ||
| # See https://megalinter.io/latest/configuration/ for all options. | ||
|
|
||
| # --- Rules that don't fit this repo's architecture (disabled outright) --- | ||
| DISABLE_LINTERS: | ||
| - BASH_EXEC | ||
| # Checks that every discovered shell script has the executable bit set. | ||
| # Every script in this repo is invoked via an explicit interpreter - | ||
| # `wget ... | sh` per INSTALL.sh's own documented usage, `. otel.sh` / | ||
| # `. otelapi.sh` sourcing, `bash path/to/script.sh` from composite actions | ||
| # and test harnesses, or spawned from main.js via a Node child process - | ||
| # never `./script.sh` directly, so this check doesn't apply here. | ||
| - JAVASCRIPT_STANDARD | ||
| # "standard" (JavaScript Standard Style) is a zero-config, semicolon-free | ||
| # style guide. This codebase consistently uses semicolons, so the large | ||
| # majority of findings were just "Extra semicolon" from that philosophy | ||
| # clash rather than real issues, and standard doesn't support disabling | ||
| # individual sub-rules. See tracking issue for the small number of | ||
| # genuinely useful catches (unused vars, camelCase, etc.) that this | ||
| # trades away. | ||
|
|
||
| # --- Generated / captured files: not source of truth, exclude everywhere --- | ||
| # - *.lock.yml under .github/workflows/ are compiled by the gh-aw CLI from | ||
| # the sibling *.md files (see recompile_agentic_workflows.yml) - not | ||
| # hand-written. | ||
| # - **/otlp.json under demos/ are captured OpenTelemetry export output | ||
| # (multiple concatenated JSON documents, not one JSON document per file), | ||
| # refreshed by refresh_demos.yml - not hand-written, and not valid | ||
| # single-document JSON by design. | ||
| # - **/gradlew is the standard Gradle wrapper script, vendored boilerplate. | ||
| # - **/package-lock.json is an npm-generated lockfile. | ||
| FILTER_REGEX_EXCLUDE: "(\\.lock\\.yml|/otlp\\.json|/gradlew|/package-lock\\.json)$" | ||
|
plengauer marked this conversation as resolved.
|
||
|
|
||
| # --- Lychee-specific: template/placeholder URLs in workflow YAML --- | ||
| # Every lychee failure outside the generated-file patterns above was a | ||
| # GitHub Actions expression or credential placeholder that isn't a real | ||
| # link (e.g. https://github.com/owner/repo/actions/runs/12345, | ||
| # https://x-access-token/, an un-interpolated ${{ github.repository }}). | ||
| # Workflow YAML isn't documentation with links for a reader to click, so | ||
| # it's excluded from the dead-link checker specifically (JSON/YAML/other | ||
| # linters still cover these files normally). | ||
| SPELL_LYCHEE_FILTER_REGEX_EXCLUDE: "\\.github/workflows/" | ||
|
plengauer marked this conversation as resolved.
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.