You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/06/15 00:55:28 UTC
[3/4] activemq-artemis git commit: Add Sevntu-checkstyle diamond
operator check
Add Sevntu-checkstyle diamond operator check
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/560ba1b3
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/560ba1b3
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/560ba1b3
Branch: refs/heads/master
Commit: 560ba1b39b710551815e747031bf6879e9809035
Parents: 3a3f678
Author: Ville Skytt� <vi...@iki.fi>
Authored: Tue Jun 14 00:18:58 2016 +0300
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Jun 14 20:50:21 2016 -0400
----------------------------------------------------------------------
etc/checkstyle.xml | 3 +++
pom.xml | 14 ++++++++++++++
2 files changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/560ba1b3/etc/checkstyle.xml
----------------------------------------------------------------------
diff --git a/etc/checkstyle.xml b/etc/checkstyle.xml
index 2492396..0196e2a 100644
--- a/etc/checkstyle.xml
+++ b/etc/checkstyle.xml
@@ -107,5 +107,8 @@ under the License.
<property name="severity" value="ignore"/>
</module>
+ <!-- Sevntu checks, http://sevntu-checkstyle.github.io/sevntu.checkstyle/ -->
+ <module name="DiamondOperatorForVariableDefinition"/>
+
</module>
</module>
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/560ba1b3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 40e7562..7254f20 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1062,6 +1062,11 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<dependencies>
+ <dependency>
+ <groupId>com.github.sevntu.checkstyle</groupId>
+ <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
+ <version>1.21.0</version>
+ </dependency>
<!-- This was initially done to enforce name on Parameter annotation
I've developed a customized check and I needed this jar to deploy the specialized checkstyle -->
<dependency>
@@ -1228,4 +1233,13 @@
</plugin>
</plugins>
</reporting>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>sevntu-maven</id>
+ <name>sevntu-maven</name>
+ <url>http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2</url>
+ </pluginRepository>
+ </pluginRepositories>
+
</project>