-
Notifications
You must be signed in to change notification settings - Fork 326
feat: add reformat command for JSON output conversion #1153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add reformat command for JSON output conversion #1153
Conversation
jalseth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking on this FR!
ea0e8cd to
f67ae9c
Compare
Add new reformat command that converts conftest JSON output to different formats (table, junit, sarif, etc). Supports both positional arguments and stdin input, aligning with existing conftest command patterns. - Use positional args for input files: reformat file.json - Support stdin input for piping: conftest test | reformat - Add comprehensive BATS tests Signed-off-by: Ville Vesilehto <[email protected]>
f67ae9c to
c26c497
Compare
jalseth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the tests. You can run locally before sending the PR for review.
Previously worked only when run directly from the reformat test dir. Signed-off-by: Ville Vesilehto <[email protected]>
|
Hopefully fixed now. The test only failed through |
jalseth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Add new reformat command that converts conftest JSON output to different formats (table, junit, sarif, etc). Supports both positional arguments and stdin input, aligning with existing conftest command patterns.
Fixes #1145