Align Go snippet gen spec #3282
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
Build
3m 34s
Annotations
10 warnings
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L17
Remove the unused private field 'clientVarType'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L18
Remove the unused private field 'clientFactoryVariables'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
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#L302
Extract this nested ternary operation into an independent statement. (https://rules.sonarsource.com/csharp/RSPEC-3358)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L303
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L303
Remove this unnecessary check for null. Some code paths are unreachable. (https://rules.sonarsource.com/csharp/RSPEC-2583)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L361
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#L426
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/GoGenerator.cs#L450
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#L609
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|