Repository navigation
Add severity levels and diff mode for report comparison - #12
Merged
Merged
Conversation
Introduce Severity enum (Info/Warning/Critical) with log(), warn(), and critical() methods; flag() remains an alias for warn(). Plain text prefixes warnings with [!] and criticals with [CRIT]. JSON output gains severity_counts and an entries array sorted by urgency. Report is now Deserialize-able for baseline comparison.
--diff FILE loads a previous JSON report and highlights only new findings (critical/warning) since that scan plus findings that were resolved. Works with --json for pipeline consumption and supports --json --out to write a reusable baseline. Exits 2 when new findings appeared, 0 otherwise.
Adds 6 integration tests: severity markers/counts, JSON entries sorted by severity, Report JSON round-trip, diff new/resolved findings, diff with no changes, and diff ignoring info entries. Total test count now 20.
Adds an Example Output section with sample plain-text and JSON reports, documents severity levels and --diff workflow, and marks all roadmap items complete in README and PROGRESS.
Edges referencing subgraph ids (LIB --> SCANNER, SCANNER --> PLATFORM) trigger the mermaid dagre-wrapper crash in older renderers (mermaid-js/mermaid#4644, fixed in v10.8). Rewrite the diagram so all edges connect concrete leaf nodes, keeping subgraphs as pure grouping containers. Verified rendering across mermaid v10.5.1, v10.9.1, and v11.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.