Jetbrains inspect code and externalIssuesReportPaths

Hi all, I am trying to add some extra analysis into the PR from the Jetbrains Inspect Code tool.

This generates an XML file which I can convert to the required json format to import however I am having trouble with this.

I have manually created a json file which is in my repository just to act as a test before doing the conversion as part of my CI prcess following this example:

When this runs I get the following message:

External issues were imported with a deprecated format which will be removed soon. Please switch to the newest format to fully benefit from Clean Code: Generic issue data - SonarCloud

INFO: Imported 0 issues in 0 files
INFO: External issues ignored for 1 unknown files, including: src/Application/Animals/Commands/EnrichAnimal/Messages/EnrichAnimalPayloadMessage.cs

Reading through the documentation it isn’t very clear what needs to change with this so that it imports.

Any help would be appreciated.

Thanks

Hey there.

You can ignore this for now. See this thread:

As for the other message: issues report will be imported for each module (project) in your solution, as well as for the project overall. So when I (succesfully) get an issue imported into SonarCloud, I see both:

INFO: Sensor Import external issues report
INFO: Imported 1 issue in 1 file
...
INFO: Imported 0 issues in 0 files
INFO: External issues ignored for 1 unknown files, including: Program.cs

Which I agree is a bit confusing.

Do you see multiple instances of the external issue report import in your logs? Is the issue you’re trying to import… imported?