Skip to content

Commit

Permalink
[yegor256#1197] fix warning for @variablename
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Mar 12, 2024
1 parent 4a83130 commit 2d2dfef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value><![CDATA[
//Name[@Image = //FieldDeclaration[@Static='true']/@VariableName]
//Name[@Image = //FieldDeclaration[@Static=true()]/VariableDeclarator/VariableDeclaratorId/@Name]
]]></value>
</property>
</properties>
Expand All @@ -175,13 +176,14 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</description>
<priority>3</priority>
<properties>
<property name="version" value="2.0"/>
<property name="xpath">
<value><![CDATA[
//PrimaryExpression[
(./PrimaryPrefix[@ThisModifier='true']) and
(./PrimaryPrefix[@ThisModifier=true()]) and
(./PrimarySuffix[
@Image=//FieldDeclaration[@Static='true']/@VariableName
or @Image=//MethodDeclaration[@Static='true']/@MethodName
@Image=//FieldDeclaration[@Static=true()]/VariableDeclarator/VariableDeclaratorId/@Name
or @Image=//MethodDeclaration[@Static=true()]/@MethodName
])
]
]]></value>
Expand Down

0 comments on commit 2d2dfef

Please sign in to comment.