Fix model import paths + Add support for enum imports #3307
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
Build
3m 11s
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/SnippetImports.cs#L57
Rename 'imports' which hides the field with the same name. (https://rules.sonarsource.com/csharp/RSPEC-1117)
|
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#L135
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Build:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L305
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
|