Skip to content

Add per-line HTMLHint disable quick fix - #430

Merged
coliff merged 3 commits into
mainfrom
dev/coliff/quick-fix-suppress
Oct 10, 2026
Merged

coliff merged 3 commits into
mainfrom
dev/coliff/quick-fix-suppress

Conversation

@coliff

@coliff coliff commented Oct 10, 2026

Copy link
Copy Markdown
Member
  • Introduce a new code action for diagnostics that adds <!-- htmlhint-disable-next-line rule-id --> above the offending line, or appends the rule to an existing disable-next-line comment.
  • The server now deduplicates these actions per rule/line and lists them after autofixes.
  • Documentation and changelog were updated
  • autofix test fixtures/config were expanded with additional rule cases.

Introduce a new code action for diagnostics that adds `<!-- htmlhint-disable-next-line rule-id -->` above the offending line, or appends the rule to an existing disable-next-line comment. The server now deduplicates these actions per rule/line and lists them after autofixes. Documentation and changelog were updated, and autofix test fixtures/config were expanded with additional rule cases.
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSON Pass ✅
MARKDOWN Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Copilot AI 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.

🟡 Changes recommended

The action can corrupt multiline tags and invalidate existing inline suppressions.

1 open finding
What changed in this PR

Adds per-line HTMLHint suppression quick fixes alongside existing autofixes.

Changes:

  • Generates deduplicated disable-next-line actions.
  • Expands autofix fixtures and documentation.
  • Updates dependency and release metadata.
File Description
htmlhint-server/​src/​server.ts Implements suppression quick fixes.
test/​autofix/​test-autofixes.html Adds rule fixtures.
test/​autofix/​.htmlhintrc Configures additional rules.
htmlhint/​README.md Documents the quick fix.
htmlhint/​CHANGELOG.md Records the feature.
htmlhint/​package.json Updates Node typings.
htmlhint/​package-lock.json Locks the dependency update.
htmlhint/​LICENSE.md Updates the copyright year.
Files not reviewed (1)
  • htmlhint/package-lock.json: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread htmlhint-server/src/server.ts Resolved
Match the htmlhint directive anywhere on the previous line and replace only
the directive itself, so content before or after it is kept and an existing
suppression is not shifted onto the newly inserted comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KuJTTYq3CpvR1S6x5iQxwH
@coliff
coliff merged commit 1b07d59 into main Oct 10, 2026
13 checks passed
@coliff
coliff deleted the dev/coliff/quick-fix-suppress branch October 10, 2026 05:59
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