-
Notifications
You must be signed in to change notification settings - Fork 145
Description
Description
The compiler parameter /errorLog now supports specifying a SARIF version i.e. the argument can be in the form <file>[,version={1|1.0|2|2.1}].
We don't handle the version parameter correctly, which prevents issues from being uploaded.
Priority: the option was added to the compiler in MSBuild v16 so it has been available for a couple of years. I haven't seen any reports users about this issue causing a problem in practice.
Repro
-
create a project to analyse and explicit set
ErrorLogin the project file e.g.<ErrorLog>$(MSBuildThisFileDirectory)issuesXXX.json,version=2.1</ErrorLog> -
analyse the project
Expected result
The project is analysed successfully.
Actual result
The issues are not uploaded. Also, there are no analysis warnings or errors to indicate the anything is wrong.
Additional notes
The sample project below includes the generated sonar-project.properties file, which does not contain a xxx.reportPaths property.
The sample uses VB.NET; the results are the same for C#.