-
Notifications
You must be signed in to change notification settings - Fork 11
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
Configuring Spotbugs ReportLevel #15
Comments
Yes, you can configure it
Quotes from gradle docs (for findbugs plugin, but it's the same for spotbugs) Default values are
|
Spotbugs plugin did not allow to filter by ranks directly, but it is possible through filters. afterEvaluate {
spotbugs.includeFilter = file("${quality.configDir}/spotbugs/includeFilter.xml")
} includeFilter.xml: <FindBugsFilter>
<Match>
<Rank value="15"/>
</Match>
</FindBugsFilter> After that only 15-20 ranks should be reported. I did not test it myself, just used this source Generally support for this should be added directly to plugin:
|
Thank you so much for your trouble. I'll give it a try. |
I was wrong, rank rule must be applied in exclusions filter, not in inclusion filter (or it should be inverted in inclusion filter). New version will provide special setting for rank filtering: quality{
spotbugsMaxRank = 15
} (means violations with ranks 16-20 will be filtered) Also, ranks are shown now in console report:
|
Thank you. Can you tell when the new version will be released? |
Ideally, just after pmd 6.20 release. There is a bug with very confusing warning. But, maybe, I'll simply downgrade to 6.18 and release.. not sure now. |
Can I use the plugin to specify the reportlevel at which the messages are displayed and what is the default reportlevel like?
thx
The text was updated successfully, but these errors were encountered: