浏览代码

assira.rules

Ranides Atterwim 10 年之前
父节点
当前提交
9a8a408d3c

+ 12 - 2
assira.rules.test/pom.xml

@@ -35,5 +35,15 @@
             </plugin>
         </plugins>
     </build>
-    	
-</project>
+	
+	<reporting>
+    <plugins>
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jxr-plugin</artifactId>
+            <version>2.3</version>
+        </plugin>
+    </plugins>
+	</reporting>
+	
+</project>

+ 0 - 2
assira.rules.test/src/main/java/net/ranides/assira/rules/test/ECB.java

@@ -38,8 +38,6 @@ public class ECB {
     int a28;
     int a29;
     
-
-
     public static void main(String[] args) {
         try {
             if (true);

+ 1 - 1
assira.rules/src/main/java/net/ranides/assira/rules/TestECB.java

@@ -30,7 +30,7 @@ public class TestECB extends AbstractStatisticalJavaRule {
             final DataPoint point = new DataPoint();
             point.setNode(node);
             point.setScore(1.0 * (node.getEndLine() - node.getBeginLine()));
-            point.setMessage(getMessage() + " ert :):)");
+            point.setMessage(getMessage()+ " (V4)");
             addDataPoint(point);
         }
 

+ 2 - 12
assira.rules/src/main/resources/rulesets/java/ranides.test.xml

@@ -26,18 +26,8 @@
             </description>
             <priority>3</priority>
             <properties>
-                <!--
-                <property name="minimum" type="Double" value="1.0" min="0.0" max="20.0" description="chuj"/>
-                -->
+                <property name="allowCommentedBlocks" type="Boolean" value="false" description="text" />
             </properties>
-            
-            <example>
-  <![CDATA[
-public void doSomething() {
-  
-}
- ]]>
-            </example>
         </rule>
 
-</ruleset>
+</ruleset>