Skip to content

Add use import statements for PHP Snippets #3111

Add use import statements for PHP Snippets

Add use import statements for PHP Snippets #3111

Triggered via pull request March 19, 2024 19:21
Status Success
Total duration 4m 38s
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#L268
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L268
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L424
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#L489
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#L490
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#L545
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#L268
Remove this unused method parameter 'childPosition'. (https://rules.sonarsource.com/csharp/RSPEC-1172)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L268
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Build: CodeSnippetsReflection.OpenAPI/LanguageGenerators/PhpGenerator.cs#L424
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)