You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2015/12/21 11:01:22 UTC
svn commit: r1721116 - in /santuario/xml-security-java/trunk: etc/
etc/santuario-pmd-ruleset.xml pom.xml
Author: coheigea
Date: Mon Dec 21 10:01:22 2015
New Revision: 1721116
URL: http://svn.apache.org/viewvc?rev=1721116&view=rev
Log:
Adding PMD rules in a config file
Added:
santuario/xml-security-java/trunk/etc/
santuario/xml-security-java/trunk/etc/santuario-pmd-ruleset.xml
Modified:
santuario/xml-security-java/trunk/pom.xml
Added: santuario/xml-security-java/trunk/etc/santuario-pmd-ruleset.xml
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/etc/santuario-pmd-ruleset.xml?rev=1721116&view=auto
==============================================================================
--- santuario/xml-security-java/trunk/etc/santuario-pmd-ruleset.xml (added)
+++ santuario/xml-security-java/trunk/etc/santuario-pmd-ruleset.xml Mon Dec 21 10:01:22 2015
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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="santuario-pmd" 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>
+ A PMD ruleset for Apache Santuario
+ </description>
+
+ <rule ref="rulesets/java/basic.xml">
+ <exclude name="AvoidUsingHardCodedIP" />
+ </rule>
+ <rule ref="rulesets/java/unusedcode.xml"/>
+ <rule ref="rulesets/java/imports.xml"/>
+ <rule ref="rulesets/java/braces.xml"/>
+ <rule ref="rulesets/java/empty.xml"/>
+ <rule ref="rulesets/java/migrating.xml">
+ <exclude name="JUnit4TestShouldUseAfterAnnotation" />
+ <exclude name="JUnit4TestShouldUseTestAnnotation" />
+ </rule>
+ <rule ref="rulesets/java/unnecessary.xml"/>
+
+</ruleset>
Modified: santuario/xml-security-java/trunk/pom.xml
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/pom.xml?rev=1721116&r1=1721115&r2=1721116&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/pom.xml (original)
+++ santuario/xml-security-java/trunk/pom.xml Mon Dec 21 10:01:22 2015
@@ -114,13 +114,7 @@
<version>3.5</version>
<configuration>
<rulesets>
- <ruleset>/rulesets/java/basic.xml</ruleset>
- <ruleset>/rulesets/java/braces.xml</ruleset>
- <ruleset>/rulesets/java/unusedcode.xml</ruleset>
- <ruleset>/rulesets/java/imports.xml</ruleset>
- <ruleset>/rulesets/java/empty.xml</ruleset>
- <ruleset>/rulesets/java/unnecessary.xml</ruleset>
- <ruleset>/rulesets/java/migrating.xml</ruleset>
+ <ruleset>${basedir}/etc/santuario-pmd-ruleset.xml</ruleset>
</rulesets>
<linkXRef>false</linkXRef>
<sourceEncoding>UTF-8</sourceEncoding>