Skip to content

Fix model import paths + Add support for enum imports #3304

Fix model import paths + Add support for enum imports

Fix model import paths + Add support for enum imports #3304

Triggered via pull request May 15, 2024 14:08
Status Success
Total duration 4m 36s
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/PhpGenerator.cs#L124
The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern '""' is not covered.
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs#L81
The switch expression does not handle all possible values of its input type (it is not exhaustive). For example, the pattern '""' is not covered.
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L52
Use an immutable collection or reduce the accessibility of the public static field 'imports'. (https://rules.sonarsource.com/csharp/RSPEC-2386)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L52
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L52
Change the visibility of 'imports' or make it 'const' or 'readonly'. (https://rules.sonarsource.com/csharp/RSPEC-2223)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L122
Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs#L79
Refactor this method to reduce its Cognitive Complexity from 44 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs#L136
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs#L220
Remove the unused local variable 'requestConfigurationName'. (https://rules.sonarsource.com/csharp/RSPEC-1481)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L305
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)