Skip to content
Browse files
Improved: Define specific ‘maxErrors’ for main/test source sets.

Previously a common maximum “checkstyle” error count was provided for
the main/test source sets.  This means that there was no effective
detection of newly introduced coding style errors in tests.  We are
now defining separate error counts to avoid new tests to introduce
such errors.

Thanks: Gil Portenseigne for identifying this limitation.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Oct 26, 2019
1 parent 43c098c commit af2c4b4d78c0d6da94d400537331dbe9aeafaa50
Showing with 2 additions and 1 deletion.
  1. +2 −1 build.gradle
@@ -307,7 +307,8 @@ checkstyle {
// the sum of errors that were present before introducing the
// ‘checkstyle’ tool present in the framework and in the official
// plugins.
maxErrors = 37864
tasks.checkstyleMain.maxErrors = 37858
tasks.checkstyleTest.maxErrors = 176
// Currently there are a lot of errors so we need to temporarily
// hide them to avoid polluting the terminal output.
showViolations = false

0 comments on commit af2c4b4

Please sign in to comment.