You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2013/11/28 06:55:39 UTC
svn commit: r1546293 - in /maven/plugins/trunk/maven-pmd-plugin/src/main:
java/org/apache/maven/plugin/pmd/rules/
java/org/apache/maven/plugin/pmd/rules/DummyRule.java
resources/rulesets/dummy.xml
Author: olamy
Date: Thu Nov 28 05:55:38 2013
New Revision: 1546293
URL: http://svn.apache.org/r1546293
Log:
merge https://github.com/apache/maven-plugins/pull/16 ooops missed to files
Added:
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java (with props)
maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml (with props)
Added: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java?rev=1546293&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java Thu Nov 28 05:55:38 2013
@@ -0,0 +1,37 @@
+package org.apache.maven.plugin.pmd.rules;
+
+/*
+ * 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.
+ */
+
+import java.util.List;
+
+import net.sourceforge.pmd.RuleContext;
+import net.sourceforge.pmd.lang.ast.Node;
+import net.sourceforge.pmd.lang.rule.AbstractRule;
+
+/**
+ * A dummy rule that does nothing. Referenced from the Dummy ruleset
+ * to work around pmd bug #1155.
+ */
+public class DummyRule extends AbstractRule
+{
+ public void apply( List<? extends Node> nodes, RuleContext ctx )
+ {
+ }
+}
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/rules/DummyRule.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml?rev=1546293&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml Thu Nov 28 05:55:38 2013
@@ -0,0 +1,39 @@
+<?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="Dummy Ruleset"
+ 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">
+
+ <!--
+ Dummy ruleset to work around bug #1155 (no rule sets present) in pmd 5.0.x.
+ -->
+
+ <description>
+ Only a dummy rules that does nothing.
+ </description>
+
+ <!-- This can not be empty because the XSD requires at least one rule. -->
+ <rule name="DummyRule"
+ message="Dummy rule"
+ language="java"
+ class="org.apache.maven.plugin.pmd.rules.DummyRule" />
+</ruleset>
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/dummy.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision