Skip to content

Validation Code | SonarCloud #49

Validation Code | SonarCloud

Validation Code | SonarCloud #49

Manually triggered January 11, 2024 01:23
Status Failure
Total duration 1m 9s
Artifacts

pull-request-sonar.yml

on: workflow_dispatch
build-and-sonar
59s
build-and-sonar
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
build-and-sonar
Process completed with exit code 1.
build-and-sonar: src/DEPLOY.Cachorro.Repository/CachorroDbContext.cs#L22
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
build-and-sonar: src/DEPLOY.Cachorro.Repository/EntityConfigurations/CachorroEntityConfiguration.cs#L67
Provide the "DateTimeKind" when creating this object. (https://rules.sonarsource.com/csharp/RSPEC-6562)
build-and-sonar: src/DEPLOY.Cachorro.Api/Extensions/Swagger/SwaggerExtension.cs#L36
'SwaggerGenOptionsExtensions.TagActionsBy(SwaggerGenOptions, Func<ApiDescription, string>)' is obsolete: 'Deprecated: Use the overload that accepts a Func that returns a list of tags'
build-and-sonar: src/DEPLOY.Cachorro.Api/Program.cs#L12
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
build-and-sonar: src/DEPLOY.Cachorro.Api/Extensions/Telemetria/LoggingExtensions.cs#L13
Make sure that this logger's configuration is safe. (https://rules.sonarsource.com/csharp/RSPEC-4792)
build-and-sonar: src/DEPLOY.Cachorro.Api/Extensions/Swagger/SwaggerExtension.cs#L56
Loop should be simplified by calling Select(description => description.GroupName)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
build-and-sonar: src/DEPLOY.Cachorro.Api/Extensions/Swagger/ConfigureSwaggerOptions.cs#L27
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
build-and-sonar: src/DEPLOY.Cachorro.Api/Extensions/Swagger/ConfigureSwaggerOptions.cs#L41
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
build-and-sonar: src/DEPLOY.Cachorro.Repository/CachorroDbContext.cs#L22
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
build-and-sonar: src/DEPLOY.Cachorro.Repository/EntityConfigurations/CachorroEntityConfiguration.cs#L67
Provide the "DateTimeKind" when creating this object. (https://rules.sonarsource.com/csharp/RSPEC-6562)