diff --git a/checkstyle/plugin.jelly b/checkstyle/plugin.jelly index 1ddcb09d..e5a1e46c 100644 --- a/checkstyle/plugin.jelly +++ b/checkstyle/plugin.jelly @@ -168,6 +168,20 @@ + + + + ${testSrcSetString} + + + + + + + diff --git a/checkstyle/plugin.properties b/checkstyle/plugin.properties index af997b20..15330ba7 100644 --- a/checkstyle/plugin.properties +++ b/checkstyle/plugin.properties @@ -26,7 +26,8 @@ maven.checkstyle.fail.on.violation = false maven.checkstyle.cache.file = ${maven.build.dir}/checkstyle-cachefile maven.checkstyle.format = sun maven.checkstyle.header.file = ${basedir}/LICENSE.txt +maven.checkstyle.check.tests=true # If useFile is false then the checkstyle task will display violations # on stdout. -maven.checkstyle.usefile = true \ No newline at end of file +maven.checkstyle.usefile = true diff --git a/checkstyle/xdocs/changes.xml b/checkstyle/xdocs/changes.xml index cbdc2fbe..aba78348 100644 --- a/checkstyle/xdocs/changes.xml +++ b/checkstyle/xdocs/changes.xml @@ -26,6 +26,7 @@ + Ability to check test sources using property maven.checkstyle.check.tests Generate reports filtered by severity Support for Java5 Upgraded to checkstyle 4.0 diff --git a/checkstyle/xdocs/properties.xml b/checkstyle/xdocs/properties.xml index e76ec612..2fd4097a 100644 --- a/checkstyle/xdocs/properties.xml +++ b/checkstyle/xdocs/properties.xml @@ -51,6 +51,14 @@ exclude any files. + + maven.checkstyle.check.tests + Yes + + Whether to check test sources or not. + The default value is true. + + maven.checkstyle.format Yes
true