Skip to content

Comments

refactor: deduplicate renderers, optimize text perf, bump to v0.1.0b2#65

Merged
maskedsyntax merged 2 commits intomainfrom
refactor/dedup-and-optimize
Feb 19, 2026
Merged

refactor: deduplicate renderers, optimize text perf, bump to v0.1.0b2#65
maskedsyntax merged 2 commits intomainfrom
refactor/dedup-and-optimize

Conversation

@maskedsyntax
Copy link
Member

@maskedsyntax maskedsyntax commented Feb 19, 2026

Summary

  • Extracted BaseReport class with shared ALERT_TYPE_MAPPING (28 entries) and _group_alerts_by_type(): removed ~100 lines of copy-paste across markdown, html, pdf renderers
  • Optimized _summarize_text() with single-pass Counter-based character analysis; eliminates double unicodedata.category() iteration and unnecessary pd.Series(list(...)) copies
  • Extracted 3x-duplicated leakage quick_fix strings to _LEAKAGE_CRITICAL_FIX / _LEAKAGE_WARNING_FIX constants
  • Updated README: stable release note, CI badge, complete list of all 25 available checks
  • Bumped version from 0.1.0b1 to 0.1.0b2 (stable release)

Test plan

  • All 119 tests pass
  • ruff check . passes clean
  • ruff format --check . passes clean
  • Report generation verified (markdown, html, pdf, json all use inherited BaseReport)

…update README

- Extract BaseReport class with shared ALERT_TYPE_MAPPING and
  _group_alerts_by_type() (removed ~100 lines of copy-paste across 3 files)
- Optimize _summarize_text() with single-pass Counter-based analysis
  (eliminates double unicodedata.category() calls and pd.Series copies)
- Extract duplicated leakage quick_fix strings to module constants
- Update README: stable release note, CI badge, complete checks list (25 checks)
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hashprep Ready Ready Preview, Comment Feb 19, 2026 4:21pm

@maskedsyntax maskedsyntax force-pushed the refactor/dedup-and-optimize branch from 03eaee1 to f1ef548 Compare February 19, 2026 16:21
@maskedsyntax maskedsyntax changed the title refactor: deduplicate renderers, optimize text perf, bump to v0.1.0 refactor: deduplicate renderers, optimize text perf, bump to v0.1.0b2 Feb 19, 2026
@maskedsyntax maskedsyntax merged commit 9c8a827 into main Feb 19, 2026
6 checks passed
@maskedsyntax maskedsyntax deleted the refactor/dedup-and-optimize branch February 19, 2026 16:26
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