Update XPath rules to 2.0

This commit is contained in:
Clément Fournier
2019-02-21 16:51:07 +01:00
parent 3269b48add
commit eaceefc39e
17 changed files with 117 additions and 114 deletions

View File

@ -150,13 +150,13 @@ In case you have loops please name the loop variables more meaningful.
<value>
<![CDATA[
//CursorForLoopStatement[
$allowSimpleLoops = 'false' or
$allowSimpleLoops = false() or
(Statement//CursorForLoopStatement or ancestor::CursorForLoopStatement)
]
/ForIndex[not(matches(@Image, $cursorPattern))]
|
//ForStatement[
$allowSimpleLoops = 'false' or
$allowSimpleLoops = false() or
(Statement//ForStatement or ancestor::ForStatement)
]
/ForIndex[not(matches(@Image, $indexPattern))]