Skip to content

Validation Code | SonarCloud #35

Validation Code | SonarCloud

Validation Code | SonarCloud #35

Manually triggered November 25, 2024 12:21
Status Success
Total duration 1m 47s
Artifacts 1

dotnet.yml

on: workflow_dispatch
build-and-sonar
1m 37s
build-and-sonar
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Controllers/HealthCheckController.cs#L15
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Swagger/SwaggerExtension.cs#L38
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Swagger/SwaggerExtension.cs#L42
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Swagger/SwaggerExtension.cs#L57
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/FilterType/ExceptionFilter.cs#L9
Make this class name end with 'Attribute'. (https://rules.sonarsource.com/csharp/RSPEC-3376)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/FilterType/ExceptionFilter.cs#L9
Specify AttributeUsage on 'ExceptionFilter' to improve readability, even though it inherits it from its base type. (https://rules.sonarsource.com/csharp/RSPEC-3993)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Controllers/v1/EmployeeRoleController.cs#L19
Remove this unread private field '_logger' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Controllers/Test/ResourcesController.cs#L21
Annotate this method with ProducesResponseType containing the return type for successful responses. (https://rules.sonarsource.com/csharp/RSPEC-6968)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Controllers/Test/KeyVaultController.cs#L18
Annotate this method with ProducesResponseType containing the return type for successful responses. (https://rules.sonarsource.com/csharp/RSPEC-6968)
build-and-sonar: src/Avanade.SubTCSE.Projeto.Api/Program.cs#L39
Make sure this permissive CORS policy is safe here. (https://rules.sonarsource.com/csharp/RSPEC-5122)

Artifacts

Produced during runtime
Name Size
CoverageReport
680 KB