When executing an XML rule like the following one:
w/ conditions both on matching an XPath and a file name w/ a parameter, the rule's execution can fail if there are more files that match the file name pattern but not the XPath condition.
For example, suppose we have two file to analyze:
- jboss-service.xml (it does NOT match the XPath condition)
- jboss-web.xml (it matches the XPath condition)
If jboss-service.xml is analyzed before jboss-web.xml then the latter won't match even if it should.