Merge pull request #4804 from adangel:issue-4309-xpath-cleanups
[core] XPath cleanups #4804
This commit is contained in:
@ -14,7 +14,7 @@ Rules which enforce generally accepted best practices.
|
||||
language="plsql"
|
||||
since="5.1"
|
||||
message="WHEN OTHERS THEN NULL - when you do this, Tom Kyte cries"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_bestpractices.html#tomkytesdespair">
|
||||
<description>
|
||||
"WHEN OTHERS THEN NULL" hides all errors - (Re)RAISE an exception or call RAISE_APPLICATION_ERROR
|
||||
|
@ -96,7 +96,7 @@ END;
|
||||
language="plsql"
|
||||
since="5.5.2"
|
||||
message="Pragma should be used only inside the declaration block before 'BEGIN'."
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_codestyle.html#misplacedpragma">
|
||||
<description>
|
||||
Oracle states that the PRAQMA AUTONOMOUS_TRANSACTION must be in the declaration block,
|
||||
@ -139,7 +139,7 @@ end inline_pragma_error;
|
||||
language="plsql"
|
||||
since="6.7.0"
|
||||
message="Use meaningful names for loop variables"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_codestyle.html#forloopnaming">
|
||||
<description>
|
||||
In case you have loops please name the loop variables more meaningful.
|
||||
|
@ -489,7 +489,7 @@ END pkg_too_many_fields;
|
||||
<rule name="TooManyMethods"
|
||||
language="plsql"
|
||||
since="5.1"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
message="This object has too many methods, consider refactoring it."
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_design.html#toomanymethods">
|
||||
<description>
|
||||
|
@ -13,7 +13,7 @@ Rules to detect constructs that are either broken, extremely confusing or prone
|
||||
language="plsql"
|
||||
since="5.1"
|
||||
message="TO_DATE(TO_CHAR(variable)) instead of TRUNC(variable)"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_errorprone.html#to_date_to_char">
|
||||
<description>
|
||||
TO_DATE(TO_CHAR(date-variable)) used to remove time component - use TRUNC(date-variable)
|
||||
@ -53,7 +53,7 @@ END date_utilities;
|
||||
language="plsql"
|
||||
since="5.1"
|
||||
message="TO_DATE without date format"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_errorprone.html#to_datewithoutdateformat">
|
||||
<description>
|
||||
TO_DATE without date format- use TO_DATE(expression, date-format)
|
||||
@ -104,7 +104,7 @@ END date_utilities;
|
||||
<rule name="TO_TIMESTAMPWithoutDateFormat"
|
||||
language="plsql"
|
||||
message="TO_TIMESTAMP without date format"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
since="5.1"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_plsql_errorprone.html#to_timestampwithoutdateformat">
|
||||
<description>
|
||||
|
@ -8,7 +8,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import net.sourceforge.pmd.lang.rule.XPathRule;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.XPathRule;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.XPathVersion;
|
||||
import net.sourceforge.pmd.reporting.Report;
|
||||
|
||||
|
Reference in New Issue
Block a user