|
|
|
|
|
by TYMorningCoffee
478 days ago
|
|
Could you propose to fail the build based on the number of warnings to ensure it doesn't go up? I did something similar with spotbugs. There were existing warnings I couldn't get time to fix so I configured the maven to fail if it exceed the level at which I enabled it. This has the unfortunate side effect that if it drops and no one adjusts the threshold then people can add more issues without failing the build. |
|
Our tests are often written with a list of known exceptions. However, such tests also fail if an exception is no longer needed - with a congratulatory message and a notice that this exception should be removed from the list. This ensures that the list gets shorter and shorter.