md-footer-template: "nothing was judged" should name the includes.byRule fix with its key

オープン 初心者向け
#501 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
devtools

調査の方向性

メッセージは src/laws/documentation/md-footer-template.ts の nothingJudged パスで生成される。まずそこで読み、次に modular-laws-registry.ts の lawConfigKey を見つけて、includes.byRule キーが law タイトルからどのように導出されるかを確認する。includes が .md ファイルを1つも選択しないプロジェクトで、メッセージに導出されたキーを含む includes.byRule のヒントが含まれ、そのケースをテストがカバーしていれば完了。'includes select none of them' を報告する他の law は任意のフォローアップである。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Version: after 8.0.0
Law: MD Footer Template (MANDATORY) — src/laws/documentation/md-footer-template.ts (nothingJudged)

What happens

When a project turns the opt-in law on while its includes.global names only source (for example src/**/*.ts), the law selects no Markdown file and reports:

8 Markdown file(s) exist, but the configured includes / ignores select none of them — nothing was judged

The cause is named, but not the fix. The run becomes partial, and the reader has to find out that the law takes its files through includes.byRule, under the key the registry sets for it (the slug of its title).

Suggested direction

Add the fix to the message, with the exact key:

… select none of them — nothing was judged. Give this law the Markdown files with includes.byRule: { "md-footer-template-mandatory": ["**/*.md"] }

Derive the key from the law's title the way the registry does (modular-laws-registry.ts, the lawConfigKey slug), not as a hard-coded string, so it stays right if the title changes. Red/green: the message on a project whose includes select no .md contains the includes.byRule hint with that key. The same pattern may apply to other laws that report "includes select none of them".

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
2時間 36分
マージ済み PR(30日)
168

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Rule-Of-Code/RoC のほかの issue

Rule-Of-Code/RoC の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。