You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/05/18 17:15:22 UTC

svn commit: r1484126 - in /commons/proper/logging/trunk: pmd.xml pom.xml

Author: ggregory
Date: Sat May 18 15:15:22 2013
New Revision: 1484126

URL: http://svn.apache.org/r1484126
Log:
Add FindBugs and PMD reports.

Added:
    commons/proper/logging/trunk/pmd.xml   (with props)
Modified:
    commons/proper/logging/trunk/pom.xml

Added: commons/proper/logging/trunk/pmd.xml
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/pmd.xml?rev=1484126&view=auto
==============================================================================
--- commons/proper/logging/trunk/pmd.xml (added)
+++ commons/proper/logging/trunk/pmd.xml Sat May 18 15:15:22 2013
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+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.
+-->
+<ruleset name="mybraces"
+    xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
+  <description>Excludes from default PMD rules.</description>
+  <rule ref="rulesets/java/unusedcode.xml">
+    <exclude name="UnnecessaryParentheses"/>
+  </rule>
+</ruleset>
\ No newline at end of file

Propchange: commons/proper/logging/trunk/pmd.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/logging/trunk/pmd.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: commons/proper/logging/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/pom.xml?rev=1484126&r1=1484125&r2=1484126&view=diff
==============================================================================
--- commons/proper/logging/trunk/pom.xml (original)
+++ commons/proper/logging/trunk/pom.xml Sat May 18 15:15:22 2013
@@ -491,6 +491,24 @@ under the License.
         <artifactId>jdepend-maven-plugin</artifactId>
         <version>2.0-beta-1</version>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <version>2.5.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pmd-plugin</artifactId>
+        <version>3.0.1</version>
+        <configuration>
+          <!-- targetJdk 1.1, 1.2 is not supported -->
+          <targetJdk>1.3</targetJdk>
+          <linkXref>true</linkXref>
+          <rulesets>
+            <ruleset>${basedir}/pmd.xml</ruleset>
+          </rulesets>
+        </configuration>
+      </plugin>
     </plugins>
   </reporting>