-
Notifications
You must be signed in to change notification settings - Fork 6
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
Report on files being validated against #346
Comments
It just another filter for checkstyle. |
Currently output is:
Following is what I think should be displayed:
But your right, as just a normal filter this is not currently possible. This would either have to be more of a Also displaying number of files seems pointless now, as patch-filters slims down the file to where the changes are, so its not the full file validation. I guess my final recommendation then, would be the number of violations patch-filters prevented.
|
Output that you reference is output of plugin, not a core checkstyle library |
Trimmed from my examples above, the output I am asking from this plugin is one of the following:
I am just looking for some feedback form patch-filters on what it is doing so its a bit clearer to the user(s) who want to know. |
How you envision filter to print output to plugin output? |
Another reason to provide some feedback is to show progress to removing all violations for reporting. The purpose of the filter is to allow users to resolve new violations slowly. There is no way to know right now how many violations are left, or when all violations are now resolved and project team can discuss removing suppression filter if they wish. It may be beneficial for this number to be seen to show management that they are now fully in compliance with all styling for project. Also, upgrading to new version of Checkstyle or adding new modules will not show how many new violations are being added also, as the only thing initially changing in commit is the configuration file. |
This will most likely require a lifecycle change from main project for proper implementation. I am open to ideas. Maybe all modules can be given a custom output function where the data makes it way to This may just be similar to a violation log (with info severity), so maybe all type of modules, including filters, should be allowed to print violations. The only difference is this type of printing discussed here won't have a file attached to it. |
Identified at checkstyle/eclipse-cs#380 (comment) ,
It was not clear why we were getting random issues and then it became clear patch-filters prevented a Checkstyle run in some cases, which is its purpose.
It would be helpful if patch-filters reported something minor like "No files identified as changed" or "Identified X files as changed" so it is clear when allows Checkstyle to run and not run.
I don't think it would have helped this case, but it will make what it is doing clearer.
The text was updated successfully, but these errors were encountered: