MegaLinter FILTER_REGEX_EXCLUDE excludes the whole .github/ tree via unanchored .git substring match
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
.mega-linter.yml から始め、FILTER_REGEX_EXCLUDE が相対パスにどのように適用されるかを確認します。除外パターンを更新し、Issue に記載されているとおり、Docker 経由で .github/** に対して actionlint、yamllint、markdownlint-cli2、editorconfig-checker を実行します。.github/** が新たな指摘なしで lint され、報告された問題がすべて解消されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
`FILTER_REGEX_EXCLUDE` in `.mega-linter.yml` is unanchored:
FILTER_REGEX_EXCLUDE: (\.git|\.venv|\.pytest_cache|\.vscode|__pycache__)
MegaLinter matches this regex against each file's full relative path. The `.git` alternative matches any path containing the substring `.git`, which also matches everything under `.github/` (e.g. `.github/workflows/mega-linter.yml`, `.github/labels.yml`, `.github/codeql.yml`). As a result the whole `.github/` tree is silently excluded from every linter — actionlint, yamllint, markdownlint, editorconfig-checker, etc. never see workflow files, label config, dependabot config, or issue templates.
Since this repo is the template other repos are scaffolded from, the bug propagates to every repo created from it.
Fix: anchor each alternative to real directory boundaries:
FILTER_REGEX_EXCLUDE: (^|/)(\.git|\.venv|\.pytest_cache|\.vscode|__pycache__)/
This keeps `.git/`, `.venv/`, `pycache/`, etc. excluded while no longer matching `.github/` as a false positive.
See laywill/laywill.github.io#48 and its fix in laywill/laywill.github.io#50 for the original writeup and verification approach (ran actionlint/yamllint/markdownlint-cli2/editorconfig-checker locally against `.github/**` via Docker to confirm no new findings before merging).
Note: fixing this may turn linters loose on `.github/**` files that have never been linted before in downstream repos — expect the fix PR to also need to clean up whatever those linters newly report.
- 主要言語
- 言語のデータがありません
- スター
- 2
- フォーク
- 0
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
kind/bug needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
matrixorigin/matrixone#29223 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
copse-dev/agent-pane#2953 ·
-
bug ci-failure high priority
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/vllm-omni#7972 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
amponce/archive-movie-browser#166 ·