aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorVikramaditya Kukreja <kukreja.vikramaditya@gmail.com>2017-03-27 20:08:58 +0530
committerrnveach <rveach02@gmail.com>2017-04-05 16:37:13 -0400
commit66e3774f258652aab21a4d4346b3ba818c574c78 (patch)
tree183d1bc1c7a2a84bb552664835e272a96102f8b6 /pom.xml
parent8a2b0bc56e233c86662d6934887d8bb1d1bb4216 (diff)
downloadcheckstyle-66e3774f258652aab21a4d4346b3ba818c574c78.tar.gz
Issue #3072: Add mvn check for non main files
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml44
1 files changed, 32 insertions, 12 deletions
diff --git a/pom.xml b/pom.xml
index f533d9861..5e2c5913a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -472,22 +472,42 @@
</dependencies>
<!-- Specifying configuration here will take effect on the execution of "mvn checkstyle:checkstyle",
but will not take effect on the execution of "mvn site" -->
- <configuration>
- <configLocation>${project.basedir}/config/checkstyle_sevntu_checks.xml</configLocation>
- <failOnViolation>true</failOnViolation>
- <includeResources>false</includeResources>
- <includeTestResources>false</includeTestResources>
- <logViolationsToConsole>true</logViolationsToConsole>
- <maxAllowedViolations>0</maxAllowedViolations>
- <violationSeverity>error</violationSeverity>
- <propertyExpansion>project.basedir=${project.basedir}</propertyExpansion>
- <sourceDirectory>${project.basedir}/src</sourceDirectory>
- <excludes>**/it/resources/**/*,**/test/resources/**/*,**/test/resources-noncompilable/**/*</excludes>
- </configuration>
<executions>
<execution>
<id>sevntu-checkstyle-check</id>
<phase>verify</phase>
+ <configuration>
+ <configLocation>${project.basedir}/config/checkstyle_sevntu_checks.xml</configLocation>
+ <failOnViolation>true</failOnViolation>
+ <includeResources>false</includeResources>
+ <includeTestResources>false</includeTestResources>
+ <logViolationsToConsole>true</logViolationsToConsole>
+ <maxAllowedViolations>0</maxAllowedViolations>
+ <violationSeverity>error</violationSeverity>
+ <propertyExpansion>project.basedir=${project.basedir}</propertyExpansion>
+ <sourceDirectory>${project.basedir}/src</sourceDirectory>
+ <excludes>**/it/resources/**/*,**/test/resources/**/*,**/test/resources-noncompilable/**/*</excludes>
+ </configuration>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>checkstyle-non-main-check</id>
+ <phase>verify</phase>
+ <configuration>
+ <configLocation>${project.basedir}/config/checkstyle_non_main_files_checks.xml</configLocation>
+ <failOnViolation>true</failOnViolation>
+ <includeResources>false</includeResources>
+ <includeTestResources>true</includeTestResources>
+ <logViolationsToConsole>true</logViolationsToConsole>
+ <maxAllowedViolations>0</maxAllowedViolations>
+ <violationSeverity>error</violationSeverity>
+ <propertyExpansion>project.basedir=${project.basedir}</propertyExpansion>
+ <sourceDirectory>${project.basedir}</sourceDirectory>
+ <includes>**/*</includes>
+ <excludes>src/main/**/*,src/test/java/**/*,src/site/resources/images/**/*,target/**/*,bin/**/*,.git/**/*,.idea/**/*,.settings/**/*,.checkstyle/**/*,.DS_Store/**/*,.nondex/**/*,.pmd/**/*,.fbExcludeFilterFile/**/*,.externalToolBuilders/**/*,.pmdruleset.xml,nbactions.xml,nb-configuration.xml,*.iml</excludes>
+ </configuration>
<goals>
<goal>check</goal>
</goals>