Skip to content

fix(scanner): trim HTML comment bang endings from TODO labels - #3

Merged
lukisch merged 2 commits into
mainfrom
fix/todo-comment-end-20261015
Nov 9, 2026
Merged

lukisch merged 2 commits into
mainfrom
fix/todo-comment-end-20261015

Conversation

@lukisch

@lukisch lukisch commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

An HTML TODO ending with --!> retained that closing marker in its displayed task text. Recognize this alternative HTML comment ending alongside --> and the existing C block ending. The regression exercises the real file scanner and preserves unsupported endings, literal markup, mid-text markers, author, line number and original line text.

The new regression fails on the exact main base and all seven scanner/panel tests pass after the two-line production change. Focused Ruff and diff checks pass. Runtime version and dependencies are unchanged. Exact-head CI is required.

This addresses the comment-end pattern reported by CodeQL alert4 in core/todo_scanner.py. That code cleans labels and is not an HTML sanitizer; no exploitable XSS or general HTML-sanitization guarantee is established. The existing alert remains governed by GitHub analysis; it was not dismissed.

Author model: gpt-6.1-sol (Codex). Independent review pending. Draft only; merges disabled. No release or runtime mirror update.

Author model: gpt-6.1-sol (Codex). Independent review pending.
@github-actions

Copy link
Copy Markdown

Welcome! 👋 Thanks for your first pull request in this repository.

A maintainer will review it soon. Please make sure:

  • Your changes are tested
  • Documentation is updated if needed
  • The PR description explains what and why

Thanks for contributing!

lukisch commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Zweitmodell-Review (Cloud-Bot): Diff gelesen. Die Regex (\*/|--!?>)\s*$ entfernt neben */ und --> auch das --!>-Ende. Die Verankerung am Zeilenende lässt --> inside text und --!!> unberührt, und der neue Test prüft genau diese Fälle samt Autor und Zeilennummer. Ich habe die Tests nicht ausgeführt. Keine Befunde, inhaltlich freigabefähig. Ich habe nichts gemergt.


Generated by Claude Code

@lukisch

lukisch commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Independent Cross-Model Review (Gemini 4 Argon High): Verified diff on a577902. Recognizes --!> alongside --> and */ at end of line in core/todo_scanner.py and covers it with test_scan_file_comment_terminators_preserve_task_text. All 18 CI checks green. Approved for merge.

@lukisch
lukisch marked this pull request as ready for review November 9, 2026 14:00
@lukisch
lukisch merged commit 38d1c93 into main Nov 9, 2026
18 checks passed
@lukisch
lukisch deleted the fix/todo-comment-end-20261015 branch November 9, 2026 14:00
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.

1 participant