Skip to content

chore: share one SeverityRank between scanner and cli - #44

Merged
joaooncode merged 2 commits into
joaooncode:mainfrom
team-humaki:fix/consolidate-severity-rank
Sep 12, 2026
Merged

joaooncode merged 2 commits into
joaooncode:mainfrom
team-humaki:fix/consolidate-severity-rank

Conversation

@team-humaki

Copy link
Copy Markdown
Contributor

severityRank lived in both internal/scanner and internal/cli with the same ordering. Moved a single exported SeverityRank next to Severity in the scanner package and pointed the CLI (scan/check) at it so the rankings can't drift. Added a small unit test for the ranks.

Fixes #37.

team-humaki and others added 2 commits September 11, 2026 22:49
Removes stray double blank lines left in scan.go and scanner.go after
deleting the duplicate severityRank functions, which failed CI's
gofmt check.
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.

chore: severityRank duplicado entre internal/scanner e internal/cli

2 participants