commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bar...@apache.org
Subject commons-rng git commit: Add checkstyle plugin configuration, to read project checkstyle.xml
Date Wed, 17 Aug 2016 20:49:06 GMT
Repository: commons-rng
Updated Branches:
  refs/heads/master 647c02bf0 -> cf0bbf9a2


Add checkstyle plugin configuration, to read project checkstyle.xml


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/cf0bbf9a
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/cf0bbf9a
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/cf0bbf9a

Branch: refs/heads/master
Commit: cf0bbf9a22f37a16d23bc836a91c354a8b351482
Parents: 647c02b
Author: Artem Barger <artem@bargr.net>
Authored: Wed Aug 17 23:46:43 2016 +0300
Committer: Artem Barger <artem@bargr.net>
Committed: Wed Aug 17 23:48:20 2016 +0300

----------------------------------------------------------------------
 pom.xml | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/cf0bbf9a/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index efc2671..19f12ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -279,7 +279,36 @@
           <additionalparam>-header &apos;&lt;script type=&quot;text/javascript&quot;
src=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&gt;&lt;/script&gt;&apos;</additionalparam>
         </configuration>
       </plugin>
+      <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <executions>
+              <execution>
+                  <id>validate</id>
+                  <phase>validate</phase>
+                  <goals>
+                      <goal>check</goal>
+                  </goals>
+              </execution>
+          </executions>
+      </plugin>
     </plugins>
+    <pluginManagement>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <version>${rng.checkstyle.version}</version>
+                <configuration>
+                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
+                    <configLocation>checkstyle.xml</configLocation>
+                    <consoleOutput>true</consoleOutput>
+                    <logViolationsToConsole>true</logViolationsToConsole>
+                    <resourceIncludes>**/*.java</resourceIncludes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </pluginManagement>
   </build>
 
   <reporting>
@@ -349,7 +378,7 @@
         <artifactId>maven-checkstyle-plugin</artifactId>
         <version>${rng.checkstyle.version}</version>
         <configuration>
-          <configLocation>${basedir}/checkstyle.xml</configLocation>
+          <configLocation>checkstyle.xml</configLocation>
           <enableRulesSummary>false</enableRulesSummary>
           <includeResources>false</includeResources>
           <headerLocation>${basedir}/license-header.txt</headerLocation>


Mime
View raw message