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

Open Beginner friendly
#501 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
devtools

Research direction

The message is produced by the nothingJudged path in src/laws/documentation/md-footer-template.ts. Read there first, then find lawConfigKey in modular-laws-registry.ts to see how the includes.byRule key is derived from the law title. Done when the message on a project whose includes select no .md files contains the includes.byRule hint with the derived key, and a test covers that case. Other laws reporting 'includes select none of them' are optional follow-ups.

Written by the indexing model from the issue text.

Description

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".

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
2h 36m
Merged PRs (30d)
168

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rule-Of-Code/RoC

All issues in Rule-Of-Code/RoC

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.