Skip to content

refactor: deduplicate helpers and extract report suppression#23

Merged
jcouture merged 1 commit into
mainfrom
refactor/code-quality-cleanup
Apr 30, 2026
Merged

refactor: deduplicate helpers and extract report suppression#23
jcouture merged 1 commit into
mainfrom
refactor/code-quality-cleanup

Conversation

@jcouture
Copy link
Copy Markdown
Owner

  • replace O(n) observationForFinding scan with map-based index lookup
  • consolidate duplicate lineDistance into finding.LineDistance
  • rename isTokenRune to isIdentRune for clarity
  • extract finding suppression logic from human.go into suppress.go
  • add doc comments to all exported engine types and methods
  • simplify isWhitespaceLikeRegion to avoid slice allocation
  • remove redundant ErrBinaryContent special-case in run.go
  • add missing rule categories to JSON report output

…ppression

  - replace O(n) observationForFinding scan with map-based index lookup
  - consolidate duplicate lineDistance into finding.LineDistance
  - rename isTokenRune to isIdentRune for clarity
  - extract finding suppression logic from human.go into suppress.go
  - add doc comments to all exported engine types and methods
  - simplify isWhitespaceLikeRegion to avoid slice allocation
  - remove redundant ErrBinaryContent special-case in run.go
  - add missing rule categories to JSON report output
@jcouture jcouture merged commit 3884e5d into main Apr 30, 2026
1 check passed
@jcouture jcouture deleted the refactor/code-quality-cleanup branch April 30, 2026 01:27
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