A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2019 below:

[core] Insufficient deprecation warnings for XPath attributes · Issue #2019 · pmd/pmd · GitHub

Affects PMD Version: 6.18

Rule: Builtin rulesets 'Codestyle' and 'Design'

Description:
Starting with 6.18 I get deprecation warnings for the builtin rulesets codestyle and design.
I tracked down the two rulesets but there might be other builtin rulesets with warnings.

Use of deprecated attribute 'VariableDeclaratorId/@array' in XPath query
Use of deprecated attribute 'VariableDeclaratorId/@ArrayDepth' in XPath query
Use of deprecated attribute 'FieldDeclaration/@array' in XPath query
Use of deprecated attribute 'FieldDeclaration/@variablename' in XPath query
Use of deprecated attribute 'FieldDeclaration/@ArrayDepth' in XPath query
Use of deprecated attribute 'PrimitiveType/@array' in XPath query
Use of deprecated attribute 'PrimitiveType/@ArrayDepth' in XPath query

The problem with this warning is that there is no indication of where it is coming from or which files are affected, which might be confusing. Examples:
yegor256/qulice#1048
aistomin/maven-browser#54

Code Sample demonstrating the issue:

Reference builtin rules codestyle or design in your ruleset:

<rule ref="category/java/codestyle.xml">
</rule>
...
<rule ref="category/java/design.xml">
</rule>

Running PMD through: Gradle


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4