feat(results): improve human readability of semantic validation results#360
Closed
ChristopherJHart wants to merge 1 commit intonetascode:mainfrom
Closed
feat(results): improve human readability of semantic validation results#360ChristopherJHart wants to merge 1 commit intonetascode:mainfrom
ChristopherJHart wants to merge 1 commit intonetascode:mainfrom
Conversation
Changes error output from inline Python list format:
ERROR - Semantic error, rule 101: ... (["error1", "error2"])
To a cleaner bulleted list format:
ERROR - Semantic error, rule 101: ...:
- error1
- error2
This improves readability when multiple validation errors are reported.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
I've opened a draft PR (#363) that addresses the readability improvements you proposed here. The implementation uses a pattern-based approach that automatically detects and colorizes different output elements (headers, separators, bullet points, etc.) without hardcoding rule-specific logic. This allows rules to define their own rich output formats with sections like "WHY THIS MATTERS" and "RECOMMENDED FIX" while getting consistent terminal colorization. Would love your feedback on the approach. Screenshots will be added to the PR shortly. |
Author
|
Closing this PR as its being superseded by #363 |
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.
Currently, if
nac-validatereceives one or more results from one or more rules, all of the results from a given rule are lumped into a single, long, comma-separated string. An example of this is shown below:This can be difficult for a human to read and methodically take action on each violation, as it is not intuitive where one violation ends and the next begins.
This PR modifies the result formatting such that each result from a given rule is broken out into a more human-readable list, as shown below: