tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [6/6] incubator-tamaya git commit: TAMAYA-18 First integration of jQAssistant.
Date Mon, 13 Apr 2015 19:21:10 GMT
TAMAYA-18 First integration of jQAssistant.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/7bc788c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/7bc788c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/7bc788c7

Branch: refs/heads/master
Commit: 7bc788c7318c587b4a6f3a07106b2cbf940d12d8
Parents: 7b55b5c
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Mon Apr 13 21:20:45 2015 +0200
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Mon Apr 13 21:20:45 2015 +0200

----------------------------------------------------------------------
 bin/jqa-server.sh       |  4 ++++
 jqassistant/default.xml | 41 +++++++++++++++++++++++++++++++++++++++++
 jqassistant/readme.md   |  8 ++++++++
 pom.xml                 | 31 +++++++++++++++++++++++++++++++
 4 files changed, 84 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7bc788c7/bin/jqa-server.sh
----------------------------------------------------------------------
diff --git a/bin/jqa-server.sh b/bin/jqa-server.sh
new file mode 100755
index 0000000..78c4c9a
--- /dev/null
+++ b/bin/jqa-server.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+mvn -P sandbox \
+    com.buschmais.jqassistant.scm:jqassistant-maven-plugin:server

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7bc788c7/jqassistant/default.xml
----------------------------------------------------------------------
diff --git a/jqassistant/default.xml b/jqassistant/default.xml
new file mode 100644
index 0000000..854f4ff
--- /dev/null
+++ b/jqassistant/default.xml
@@ -0,0 +1,41 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<jqa:jqassistant-rules xmlns:jqa="http://www.buschmais.com/jqassistant/core/analysis/rules/schema/v1.0">
+
+    <constraint id="naming:namingOfPropertyConverters">
+        <requiresConcept refId="java:AnonymousInnerType" />
+        <description>Class name of implementations of PropertyConverter must end with
'Converter'</description>
+        <cypher><![CDATA[
+        MATCH
+            (t:Type)-[:IMPLEMENTS*]->(i:Type)
+
+        WHERE
+            i.fqn='org.apache.tamaya.PropertyConverter'
+            AND NOT t:Anonymous:Inner
+            AND NOT t.name =~ '.*Converter'
+
+        RETURN
+            t.fqn
+        ]]></cypher>
+    </constraint>
+
+    <group id="default">
+        <includeConstraint refId="naming:namingOfPropertyConverters"/>
+    </group>
+</jqa:jqassistant-rules>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7bc788c7/jqassistant/readme.md
----------------------------------------------------------------------
diff --git a/jqassistant/readme.md b/jqassistant/readme.md
new file mode 100644
index 0000000..5e67ec5
--- /dev/null
+++ b/jqassistant/readme.md
@@ -0,0 +1,8 @@
+# Rules for jQAssistant
+
+This directory contains the rules for 
+jQAssitant. A tool used by Tamaya to
+ensure some contraints on our project.
+
+You can learn more on jQAssitant at http://jqassistant.org/
+

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/7bc788c7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 38125df..8d97318 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,6 +57,7 @@ under the License.
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <jackson.version>2.5.1</jackson.version>
         <junit.version>4.12</junit.version>
+        <jqassistant.version>1.0.0-RC1</jqassistant.version>
 
         <!-- Dependency and plugin relate version properties go here -->
         <arquillian.version>1.1.7.Final</arquillian.version>
@@ -472,12 +473,41 @@ under the License.
                     <version>3.3</version>
                     <inherited>true</inherited>
                 </plugin>
+                <plugin>
+                    <groupId>com.buschmais.jqassistant.scm</groupId>
+                    <artifactId>jqassistant-maven-plugin</artifactId>
+                    <version>${jqassistant.version}</version>
+                    <executions>
+                        <execution>
+                            <id>scan</id>
+                            <goals>
+                                <goal>scan</goal>
+                            </goals>
+                        </execution>
+                        <execution>
+                            <id>analyze</id>
+                            <goals>
+                                <goal>analyze</goal>
+                            </goals>
+                            <configuration>
+                                <!-- @todo Enable after 1.0.0-RC2 -->
+                                <failOnViolations>true</failOnViolations>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
+
             </plugins>
         </pluginManagement>
 
 
         <plugins>
             <plugin>
+                <groupId>com.buschmais.jqassistant.scm</groupId>
+                <artifactId>jqassistant-maven-plugin</artifactId>
+            </plugin>
+
+            <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>findbugs-maven-plugin</artifactId>
             </plugin>
@@ -648,6 +678,7 @@ under the License.
                 <checkstyle.skip>true</checkstyle.skip>
                 <findbugs.skip>true</findbugs.skip>
                 <rat.skip>true</rat.skip>
+                <jqassistant.skip>true</jqassistant.skip>
             </properties>
         </profile>
 


Mime
View raw message