fernandreu / office-ribbonx-editor

An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
MIT License
516 stars 100 forks source link

Fix SonarCloud analysis #148

Closed fernandreu closed 3 years ago

fernandreu commented 3 years ago

This occurred after introducing source generators in #147.

The failed build log: https://dev.azure.com/fernandreu-public/OfficeRibbonXEditor/_build/results?buildId=1008&view=logs&j=29dbad71-896d-5e87-cce5-e9070038d1d1&t=9b85fa0a-ae2b-5c97-7282-41ceee49da1c

The gist of it:

WARN: File 'Generators\Generators.CommandGenerator\GoToDialogViewModel.CommandGenerator.cs' referenced by the protobuf 'CopyPasteTokenInfo' does not exist in the analysis context
WARN: File 'Generators\Generators.CommandGenerator\SettingsDialogViewModel.CommandGenerator.cs' referenced by the protobuf 'CopyPasteTokenInfo' does not exist in the analysis context
WARN: File 'Generators\Generators.CommandGenerator\EditorTabViewModel.CommandGenerator.cs' referenced by the protobuf 'CopyPasteTokenInfo' does not exist in the analysis context
WARN: File 'Generators\Generators.CommandGenerator\IconTabViewModel.CommandGenerator.cs' referenced by the protobuf 'CopyPasteTokenInfo' does not exist in the analysis context
WARN: File 'Generators\Generators.CommandGenerator\MainWindowViewModel.CommandGenerator.cs' referenced by the protobuf 'CopyPasteTokenInfo' does not exist in the analysis context
INFO: Importing 15 Roslyn reports
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 48.184s
INFO: Final Memory: 29M/100M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalArgumentException: URI is not absolute
java.lang.IllegalArgumentException: URI is not absolute
##[error]at java.base/java.io.File.<init>(File.java:418)
    at java.base/java.io.File.<init>(File.java:418)
##[error]at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
    at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
##[error]at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)
    at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)

The SonarCloud post I made: https://community.sonarsource.com/t/c-analysis-failing-in-azure-pipelines-due-to-java-lang-illegalargumentexception-uri-is-not-absolute/38995