Open mandracke76 opened 2 years ago
For information, I have no error in this technical context:
maven-3.6-jdk-11
...
org/sonarsource/scanner/api/sonar-scanner-api/2.12.0.1661/sonar-scanner-api-2.12.0.1661.jar
org/sonarsource/parent/parent/48/parent-48.pom
org/sonarsource/scanner/maven/sonar-maven-plugin/3.6.0.1398/sonar-maven-plugin-3.6.0.1398.jar
...
[INFO] SonarQube version: 8.9.7
[INFO] Default locale: "en", source code encoding: "UTF-8"
[INFO] Load global settings
...
[INFO] Sensor Ansible Lint Sensor [ansible]
[INFO] ansible version:
[INFO] ansible 2.9.12
[INFO] config file = None
[INFO] configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
[INFO] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
[INFO] executable location = /usr/local/bin/ansible
[INFO] python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0]
[INFO] ansible-lint version:
[INFO] ansible-lint 4.2.0
[INFO] Sensor Ansible Lint Sensor [ansible] (done) | time=15137ms
Same issue for me with : ansible-lint 6.8.2, ansible 2.13.5 This was working with : ansible-lint 4.2.0, ansible 2.9.12
I have created PR-56 to handle ansible-lint 6.5 format. I have added in AbstractAnsibleSensor.java a new matcher that handle ansible-lint 6.5.0 format
Matcher new65Splitter = Pattern.compile("^(.*):([0-9]+): ([^ ]+) \\((.*)\\)$").matcher(rawIssue);
I have not yet tested this modification in sonar.
I recently upgraded to Debian 12 and immediately run into this problem. ansible-lint 6.13.1 using ansible 2.14.3
, SonarQube updated to 9.9, sonar-scanner-5.0.1.3006-linux and sonar-ansible-plugin 2.5.1.
I tried this PR-56 and it got rid of WARN: Invalid issue syntax
, but SonarQube still shows 0 issues and it should show tons of them.
Same for me, we tested the PR too, and it's not working. Still not tested yet, because we have to upgrade our sonar before : ansible-lint can generate sarif reports, sonar can import sarif reports.
I made a second try. In SonarQube i checked "Quality Profile" for my project and turns out many rules were inactive. After activating more rules (i had 49 active, now 92), "code smells" are back, but i can see 2 problems:
Hello,
The regexp here don't match the lint error
The good syntax must be "^(.):([0-9]+): ([^ ]+)(.)$"
My execution context is:
My YAML file for test is :