I am trying to import this issue as a external issue in sonarqube, in the logs import looks successful but it does not show up anywhere, can anyone help what am i missing?
this is a external-issue.json file that i am trying to import
my sonarqube settings are as follows
“sonar.sources”: “src/components/events.ts”,
“sonar.externalIssuesReportPaths”: “test-reports/external-issues.json”
i am seeing the following in logs:
INFO: Sensor Import external issues report
INFO: Imported 1 issue in 1 file
INFO: Sensor Import external issues report (done) | time=55ms
INFO: 1/1 file analyzed, current file: /src/components/events.ts
INFO: Analysis report generated in 217ms, dir size=190.4 kB
INFO: Analysis report compressed in 19ms, zip size=25.4 kB
INFO: Analysis report uploaded in 484ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: …
Hi, thank you for your response.
did you want the screenshot of events.ts file? I may need security clearance from infosec before i post it here.
may i know what are we looking for in the events.ts file?
I dont see anything on SonarQube, in the logs it shows the file is getting scanned but it does not show up on the dashboard.
I can see the following in logs:
INFO: 1/1 file analyzed, current file: /home/asruser/src/components/events.ts
INFO: Creating TypeScript program (done) | time=1099ms
INFO: Starting analysis with current program
INFO: Analyzed 0 file(s) with current program
when using a filter, test:rule1 shows in the search box but there are no issues related with it.
can we setup a zoom call so that it’s easier to look at where the problem could be?
Then this is not a question of “external issues not importing” but of analysis omitting files.
Please share your full analysis log.
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.