-
Notifications
You must be signed in to change notification settings - Fork 74
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
Compact STDOUT/JSON Output #107
Comments
This looks great! I love the idea. I could definitely see eventually switching to this as the default behavior, and allowing people to turn on the more verbose output when necessary. That actually brings up another interesting though. When coupled with interactive mode (as proposed in #105), we should give the user the option to view the full verbose output. |
Compact mode is intended to be limited to 1 line per issue. I wanted interactive mode to show more lines around it to get context on the usage of the flagged item. I don't want this mode to take away from the intent of the two options. Compact is intended to be compact and if you needed more info, you can look at the file/line yourself. Interactive is intended to view and take action on-the-fly (which you might need more info than compact). |
Sure, I understand the intent. But should these necessarily be mutually exclusive? I would think no. Just because this is how you use it doesn't mean that's how everybody will use it. 😄 So I say why limit the users? If they want to do |
True. I guess compact can have different output for interactive. |
+1 Good idea |
For compact JSON I've been using this:
I also needed A related issue we might be able to address with compact output: The |
Feature Request
Add
--compact
flag to CLI to enable abbreviated stdout.Is your feature request related to a problem? Please describe.
The default outputs product such large output (300K+ lines) which can be painful to review.
Describe the solution you'd like
Add
--compact
flag to CLI to display the most relevant information used to ignore false flags.STDOUT
[{IssueType} ({Signature})] {file_path}@L{matched_line_no}: {matched_line}
JSON
Describe alternatives you've considered
The current json/stdout.
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: