Skip to content

Tidy rule headers and dedupe vague/placeholder word lists - #51

Merged
kzhou314 merged 1 commit into
mainfrom
rules-style-cleanup
Jul 3, 2026
Merged

Tidy rule headers and dedupe vague/placeholder word lists#51
kzhou314 merged 1 commit into
mainfrom
rules-style-cleanup

Conversation

@kzhou314

@kzhou314 kzhou314 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2026 21:34
@kzhou314
kzhou314 requested a review from a team as a code owner July 2, 2026 21:34
GitHub Advanced Security started work on behalf of kzhou314 July 2, 2026 21:34 View session
GitHub Advanced Security finished work on behalf of kzhou314 July 2, 2026 21:34
@kzhou314
kzhou314 requested a review from JoyceZhu July 2, 2026 21:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes/clarifies rule and utility headers, and centralizes “placeholder” alt-text strings into the placeholder-alt-text rule to avoid duplicating that vocabulary in vague-alt-text.

Changes:

  • Moved placeholder-like single words/phrases out of vague-alt-text and into placeholder-alt-text, updating tests accordingly.
  • Reformatted/expanded placeholder word lists in unit tests for readability and broader coverage.
  • Replaced/added concise file-level header comments across several rules/utilities.
Show a summary per file
File Description
tests/unit/vague-alt-text.test.ts Updates single-word vague list test and asserts placeholder strings are no longer flagged by vagueAltText.
tests/unit/placeholder-alt-text.test.ts Expands and reformats the placeholder corpus asserted to be flagged by placeholderAltText.
src/utils/normalize-alt-text.ts Converts JSDoc block to line comments describing normalization intent/usage.
src/rules/vague-alt-text.ts Removes placeholder terms/phrases from vague sets and adds a concise file header.
src/rules/repeated-alt-text.ts Adds a concise file header comment.
src/rules/placeholder-alt-text.ts Adds a concise file header and expands placeholder set with more common boilerplate strings.
src/rules/missing-alt-text.ts Adds a concise file header comment describing behavior around alt="".
src/rules/filename-alt-text.ts Adds a concise file header comment.
src/config.ts Adds clarifying comments about config loading and rule override extraction.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Low

@JoyceZhu JoyceZhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kzhou314
kzhou314 merged commit 4552a2b into main Jul 3, 2026
10 checks passed
@kzhou314
kzhou314 deleted the rules-style-cleanup branch July 3, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants