mulesoft-catalyst / mule-sonarqube-plugin

The Mule SonarQube Plugin provides the capability to do code inspecting and taking project metrics from a mule project using SonarQube.
The Unlicense
48 stars 69 forks source link

string-length() for xpath expressions does not work #40

Open nomorevictor opened 2 years ago

nomorevictor commented 2 years ago

Kudos for your contribution!

Here I got some feedback: I realized that using string-length() in xpath expressions does not work. An example rule is:

    <rule id="7"
        name="Flow name exceeds 20 characters"
        description="Flow name exceeds 20 characters"
        severity="MINOR" applies="application" type="code_smell">
        count(//mule:mule/mule:flow/@name[string-length()>20])>=1
    </rule>

When running a sonarqube scan, changes to the flow-name flow do not trigger this rule.

Thank you, Victor