Skip to content

Add use import statements for PHP Snippets #3115

Add use import statements for PHP Snippets

Add use import statements for PHP Snippets #3115

Triggered via pull request March 19, 2024 20:28
Status Success
Total duration 4m 33s
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#L270
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L270
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L426
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L491
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#L492
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L547
Indexing at 0 should be used instead of the "Enumerable" extension method "First" (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/PhpGenerator.cs#L270
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L270
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L426
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)