Skip to content

Commit b1d533a

Browse files
committed
[#1198] add puzzle for static vars rules
1 parent a721c17 commit b1d533a

File tree

1 file changed

+6
-0
lines changed
  • qulice-pmd/src/main/resources/com/qulice/pmd

1 file changed

+6
-0
lines changed

qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
147147
</property>
148148
</properties>
149149
</rule>
150+
<!--
151+
@todo #1198 Rules for AvoidDirectAccessToStaticFields and AvoidAccessToStaticMembersViaThis produce
152+
"WARNING: Use of deprecated attribute 'FieldDeclaration/@VariableName' by XPath rule ...,
153+
please use VariableDeclaratorId/@Name instead"
154+
Rules should be updated to avoid deprecated (replacement from the message does not work)
155+
-->
150156
<rule name="AvoidDirectAccessToStaticFields" message="Static fields should be accessed in a static way [CLASS_NAME.FIELD_NAME]." language="java" class="net.sourceforge.pmd.lang.rule.XPathRule">
151157
<description>
152158
Avoid accessing static fields directly.

0 commit comments

Comments
 (0)