Skip to content

Add .NET / SonarQube scan CI workflow #2

Add .NET / SonarQube scan CI workflow

Add .NET / SonarQube scan CI workflow #2

Triggered via pull request January 21, 2025 09:24
Status Failure
Total duration 2m 2s
Artifacts

dotnet-build.yml

on: pull_request
Build .NET, Test and Analyse
1m 51s
Build .NET, Test and Analyse
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
Build .NET, Test and Analyse
Process completed with exit code 1.
Build .NET, Test and Analyse
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build .NET, Test and Analyse: src/Core/Dfe.Complete.Utils/EnumExtensions.cs#L39
Converting null literal or possible null value to non-nullable type.
Build .NET, Test and Analyse: src/Core/Dfe.Complete.Utils/EnumExtensions.cs#L43
Converting null literal or possible null value to non-nullable type.
Build .NET, Test and Analyse: src/Core/Dfe.Complete.Utils/EnumExtensions.cs#L15
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/CorrelationContext.cs#L5
Non-nullable property 'CorrelationId' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/CorrelationIdMiddleware.cs#L22
Remove this argument from the method call; it hides the caller information. (https://rules.sonarsource.com/csharp/RSPEC-3236)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/LoggerExtensions.cs#L13
Move 'filePath' to the end of the parameter list. (https://rules.sonarsource.com/csharp/RSPEC-3343)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/LoggerExtensions.cs#L13
Move 'memberName' to the end of the parameter list. (https://rules.sonarsource.com/csharp/RSPEC-3343)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/LoggerExtensions.cs#L8
Move 'filePath' to the end of the parameter list. (https://rules.sonarsource.com/csharp/RSPEC-3343)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/LoggerExtensions.cs#L8
Move 'memberName' to the end of the parameter list. (https://rules.sonarsource.com/csharp/RSPEC-3343)
Build .NET, Test and Analyse: src/Frontend/Dfe.Complete.Logging/LoggerExtensions.cs#L18
Move 'filePath' to the end of the parameter list. (https://rules.sonarsource.com/csharp/RSPEC-3343)