Skip to content

Align Go snippet gen spec #3278

Align Go snippet gen spec

Align Go snippet gen spec #3278

Triggered via pull request May 3, 2024 07:38
Status Success
Total duration 3m 34s
Artifacts

sonarcloud.yml

on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
check if SONAR_TOKEN is set in github secrets
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L185
"Find" method should be used instead of the "FirstOrDefault" extension method. (https://rules.sonarsource.com/csharp/RSPEC-6602)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L304
Extract this nested ternary operation into an independent statement. (https://rules.sonarsource.com/csharp/RSPEC-3358)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L305
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L305
Remove this unnecessary check for null. Some code paths are unreachable. (https://rules.sonarsource.com/csharp/RSPEC-2583)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L363
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L428
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L452
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L611
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: GraphWebApi/Startup.cs#L43
'ApplicationInsightsServiceOptions.InstrumentationKey' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use ApplicationInsightsServiceOptions.ConnectionString. See https://github.com/microsoft/ApplicationInsights-dotnet/issues/2560 for more details.'
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L185
"Find" method should be used instead of the "FirstOrDefault" extension method. (https://rules.sonarsource.com/csharp/RSPEC-6602)