You have a good point! The first option might make more sense. I however came up with a case where this would cause a weird behavior. Consider this:

1. The system is configured to allow one new Checkstyle warning per commit (delta)
2. A build is green
3. The build becomes UNSTABLE (reason doesn't matter)
4. Given that only stable builds are reference builds, the Checkstyle would mark each build as unstable if the sum of new Checkstyle warnings added since the last stable is greater than one.

Maybe a more complicated rule is desirable: The only case where the reference build shouldn't be changed is when the build is unstable (for other reasons) and the number of warnings has decreased. In other words, don't allow the reference warning count to decrease when the build is unstable. Comments?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to