-
Notifications
You must be signed in to change notification settings - Fork 107
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
New option to make reports less verbose --report-only-summary
#398
Comments
@guillermocalvo Thank you for work and for thinking about how to improve the tool. The basic idea of showing less information is not bad. What I have had in mind for longer and what also has been requested some time ago would be a more advanced filtering solutions for the reports. Only skipping methods and fields by one flag might be a good idea. But what about a more fine-grained filtering mechanism, allowing users to choose what to see in the report? |
@siom79 Sure, I can take a stab at implementing a more fine-grained mechanism. Just so we are on the same page; when you talk about "filtering solutions", you mean being able to omit just fields, or just constructors and annotations, etc.? If that's the use case, we could define new options:
So users would be able to select any combination thereof to exclude those specific details from the report. Is something like that what you had in mind? |
The point here is that we currently propagate the incompatibility from the lower elements up to the class. Meaning that if you modify a method incompatible the class is marked as being changed incompatible. If we now hide the method, the class is still shown as incompatible, but you do not know why. We already have flags for only binary incompatible changes and any changes. So if we filter out methods and fields we should indicate somehow that incompatible changes come from the not shown methods and or fields. I would also prefer only one flag with a list like |
Yes, that's precisely my use case: sometimes I want to know which classes are incompatible but I don't care why they are incompatible. Let me illustrate it with an example:
My intent was that
I just wanted to offer a mechanism to keep reports short and concise for those situations when there's no need for full details. I didn't think a warning was really necessary, because users must enable the option explicitly. 🤔 I think maybe my specific use case doesn't have much in common with your advanced filtering feature, after all. What do you think @siom79 ? |
Hi @siom79 👋 Have you had a chance to think about what we should do with this new feature? |
Hi @guillermocalvo , ok, after thinking some time about it 😉 there is a chance that this PR gets merged. But why is it only implemented for the CLI and ant task and not for the maven plugin? |
@siom79 You're right; I missed that part 😅 I have just pushed some changes to add a new parameter |
Released with 0.22.0. |
Sometimes compatibility reports may be a bit too verbose, especially if all you need is the list of incompatible classes.
I would like to introduce a new option
--report-only-summary
that will omit further details when generating plain text or html reports. I think it shouldn't affect xml reports, because they're not meant for direct human consumption.It should be disabled by default, so reports continue to show all the available information unless the option is explicitly enabled.
The text was updated successfully, but these errors were encountered: