Skip to content

Commit 9b35e09

Browse files
committed
Update pmd-custom_ruleset.xml
1 parent 1930668 commit 9b35e09

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

pmd-custom_ruleset.xml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
<?xml version="1.0"?>
22
<ruleset name="TheAlgorithms/Java ruleset"
3-
xmlns="http://pmd.sf.net/ruleset/1.0.0"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6-
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
3+
xmlns="http://pmd.sf.net/ruleset/1.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6+
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
77

88
<description>
9-
Custom PMD checks for TheAlgorithms/Java.
9+
Custom PMD checks for TheAlgorithms/Java
1010
</description>
1111

12+
<!--
1213
<rule name="UselessMainMethod"
1314
language="java"
1415
message="The main method is redundant in this context"
1516
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule">
1617
<description>
17-
Avoid using a standalone main method unless required.
18+
Avoid using the main method.
1819
</description>
1920
<priority>3</priority>
2021
<properties>
2122
<property name="xpath">
22-
<value><![CDATA[
23-
//MethodDeclaration[@Name='main']
24-
]]></value>
23+
<value>
24+
<![CDATA[
25+
//MethodDeclaration[@Name = "main"]
26+
]]>
27+
</value>
2528
</property>
2629
</properties>
2730
</rule>
31+
-->
32+
2833
</ruleset>

0 commit comments

Comments
 (0)