Open DiegoEliasCosta opened 5 years ago
This verbosity comes with bumping spotbugs version from 3.1.1 to 3.1.2
https://github.com/spotbugs/spotbugs/compare/3.1.1...spotbugs:3.1.2 - link to compare of these two versions (24 commits in 3.1.2)
I suspect the following commit - https://github.com/spotbugs/spotbugs/commit/88fb657b2055d062d09b3952310f58356304619e
Yeah... that puzzles me a bit. The problem is that apparently SpotBugsRule
is the only available entry-point for unit-tests in SpotBugs and there is no way to customize the detectors that are running in the tests.
I found some detectors that have unguarded print
statements that will be printed every time we run some unit tests.
The easiest solution would be to send a PR to SpotBugs guarding the print statements with a DEBUG
variable, which is how most detectors are implemented. Another option would be to implement better control over the detectors that are running, but that can take quite some time.
I will send them a PR tomorrow.
After migrating to SpotBugs 3.1.12 unit-tests now print the method byte-code. This should be configured to be printed only when running in DEBUG mode with build systems.
Example of