morriq
(morriq)
June 19, 2023, 2:56pm
1
Must-share information (formatted with Markdown ):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 9.9
how is SonarQube deployed: zip, Docker, Helm
what are you trying to achieve
what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
hello, I try to load stylelint report to sonar, but sonar doesn’t recognize it.
16:42:56.078 DEBUG: ‘Import of stylelint issues’ skipped because there is no related file in current project
My sonar-project.properties has:
sonar.css.stylelint.reportPaths=./reports/stylelint.json
sonar.eslint.reportPaths=reports/eslint-report.json
eslint worth noting because it works
Stylelint report file created with json format. Construction of file:
[{"source":"/xx/xx.ts","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":false,"warnings":[]}]
ganncamp
(G Ann Campbell)
June 20, 2023, 9:55pm
2
Hi,
Can you try it without the ./
? (It should work either way, but let’s eliminate that.) Also, I’ve double-checked the spelling of the parameter name. Can you double-check the spelling of the path to the file?
Ann
morriq
(morriq)
June 21, 2023, 8:15am
3
Hello,
removed ./
but no effects. Path is 100% correct, stylelint report is in the same folder with eslint report. Eslint report works:
10:01:47.492 INFO: Importing /xx/reports/eslint-report.json
10:01:47.555 DEBUG: Saving external ESLint issue { file:"/xx/src/components/Button/Button.tsx", id:react/jsx-props-no-spreading, message:"Prop spreading is forbidden", line:186, offset:6, type: CODE_SMELL, severity:MAJOR, remediation:5 }
10:01:47.573 DEBUG: Saving external ESLint issue { file:"/xx/src/components/Button/Button.tsx", id:react/jsx-props-no-spreading, message:"Prop spreading is forbidden", line:187, offset:6, type: CODE_SMELL, severity:MAJOR, remediation:5 }
$ ls ./reports | grep stylelint.json
stylelint.json
grep copied from sonar-project.properties
but still
09:59:21.026 DEBUG: ‘Import of stylelint issues’ skipped because there is no related file in current project
ganncamp
(G Ann Campbell)
June 21, 2023, 2:56pm
5
Hi,
Thanks for double-checking. I’ve flagged this for more expert eyes.
Ann
Hello @morriq ,
thanks for reporting this. It is a known issue for which we opened a ticket last month.
Cheers,
Victor
Hi @morriq ,
Just for completion, this issue it’s in the backlog but it’s just not programmed for the next release. Still, it should be fixed this year.
Cheers,
Victor
1 Like
system
(system)
Closed
June 30, 2023, 5:13pm
12
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.