feat: add severity-based sorting and filtering for violations (v0.5.2)

- Add CRITICAL/HIGH/MEDIUM/LOW severity levels to all violations
- Sort violations by severity automatically (most critical first)
- Add CLI flags: --min-severity and --only-critical
- Group violations by severity in CLI output with color-coded headers
- Update all violation interfaces to include severity field
- Maintain 90%+ test coverage with all tests passing
- Update CHANGELOG.md, ROADMAP.md, and package version to 0.5.2
This commit is contained in:
imfozilbek
2025-11-24 20:36:15 +05:00
parent a34ca85241
commit 88876a258b
7 changed files with 345 additions and 30 deletions

View File

@@ -20,6 +20,8 @@ export const CLI_DESCRIPTIONS = {
VERBOSE_OPTION: "Verbose output",
NO_HARDCODE_OPTION: "Skip hardcode detection",
NO_ARCHITECTURE_OPTION: "Skip architecture checks",
MIN_SEVERITY_OPTION: "Minimum severity level (critical, high, medium, low)",
ONLY_CRITICAL_OPTION: "Show only critical severity issues",
} as const
export const CLI_OPTIONS = {
@@ -27,6 +29,8 @@ export const CLI_OPTIONS = {
VERBOSE: "-v, --verbose",
NO_HARDCODE: "--no-hardcode",
NO_ARCHITECTURE: "--no-architecture",
MIN_SEVERITY: "--min-severity <level>",
ONLY_CRITICAL: "--only-critical",
} as const
export const CLI_ARGUMENTS = {