File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments