Add use import statements for PHP Snippets #3125
Annotations
10 warnings
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L41
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L46
Rename 'imports' which hides the field with the same name. (https://rules.sonarsource.com/csharp/RSPEC-1117)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L257
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L257
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L413
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L478
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L479
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Build and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L534
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (https://rules.sonarsource.com/csharp/RSPEC-6608)
|
Build and analyze:
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 and analyze:
CodeSnippetsReflection.OpenAPI/LanguageGenerators/SnippetImports.cs#L41
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|
Loading