Inspectcode output without severity/level abote 'note'

Problem:

Issues above the level 'note' are not marked as such in the output of InspectCode.

Command used:
inspectcode.exe $(PathtoSln) --exclude=$(ExcludedFiles) --no-build --output="resharper.json"

Issues with severity ‘note’ are marked with "level": “note”, however severity ‘WARNING’ does not have any level attached to the issue.

However ruleId, ruleIndex and message are present for the issues as expected.

Is there a reason for this behavior or a setting that I am missing?

 

InspectCode versions I've tried:
2024.1.1

2023.3.4

0
5 comments

Default severity is a warning. And it's skipped from emitting when matches default level.

0

Is there a way to change it?
I am trying to import the sarif report into another software but without the level those issues get flagged incorrectly.

0

Unfortunately, at this moment - no. It's a problem in Sarif SDK we use.

0

Please follow the ticket for further development.

0

Thank you very much!

0

Please sign in to leave a comment.