Author: sebb Date: Sun Apr 1 00:23:32 2012 New Revision: 1307955 URL: http://svn.apache.org/viewvc?rev=1307955&view=rev Log: Add PMD ruleset; update dependency versions
Added: commons/proper/dbutils/trunk/pmd-ruleset.xml (with props) Modified: commons/proper/dbutils/trunk/pom.xml Added: commons/proper/dbutils/trunk/pmd-ruleset.xml URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/pmd-ruleset.xml?rev=1307955&view=auto ============================================================================== --- commons/proper/dbutils/trunk/pmd-ruleset.xml (added) +++ commons/proper/dbutils/trunk/pmd-ruleset.xml Sun Apr 1 00:23:32 2012 @@ -0,0 +1,36 @@ +<?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="compress" + xmlns="http://pmd.sf.net/ruleset/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" + xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> + <description>Standard Ruleset but excluding the "no octal + constants" rule</description> + <rule ref="rulesets/basic.xml"> + <exclude name="AvoidUsingOctalValues"/> + <!-- Rule seems to be broken; it's triggered by "new java.sql.Date(time)" --> + <exclude name="AvoidThreadGroup"/> + </rule> + <rule ref="rulesets/finalizers.xml"/> + <rule ref="rulesets/imports.xml"/> + <rule ref="rulesets/unusedcode.xml"/> + <rule ref="rulesets/braces.xml"/> +</ruleset> Propchange: commons/proper/dbutils/trunk/pmd-ruleset.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: commons/proper/dbutils/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/pom.xml?rev=1307955&r1=1307954&r2=1307955&view=diff ============================================================================== --- commons/proper/dbutils/trunk/pom.xml [utf-8] (original) +++ commons/proper/dbutils/trunk/pom.xml [utf-8] Sun Apr 1 00:23:32 2012 @@ -268,7 +268,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> - <version>2.7</version> + <version>2.9.1</version> <configuration> <configLocation>${basedir}/checkstyle.xml</configLocation> <enableRulesSummary>false</enableRulesSummary> @@ -278,7 +278,7 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> - <version>2.3.2</version> + <version>2.4.0</version> <configuration> <threshold>Normal</threshold> <effort>Default</effort> @@ -292,9 +292,12 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> - <version>2.5</version> + <version>2.7.1</version> <configuration> <targetJdk>${maven.compile.source}</targetJdk> + <rulesets> + <ruleset>${basedir}/pmd-ruleset.xml</ruleset> + </rulesets> </configuration> </plugin> </plugins>