From 83c7f3cbc9414310bd9fed5511c88240e2fd2cdb Mon Sep 17 00:00:00 2001 From: carlos Date: Wed, 22 Jun 2005 19:34:27 +0000 Subject: [PATCH] Ability to check test sources using property maven.checkstyle.check.tests git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@192977 13f79535-47bb-0310-9956-ffa450edef68 --- checkstyle/plugin.jelly | 14 ++++++++++++++ checkstyle/plugin.properties | 3 ++- checkstyle/xdocs/changes.xml | 1 + checkstyle/xdocs/properties.xml | 8 ++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) 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