Skip to content

chore/tasks linting #3575

chore/tasks linting

chore/tasks linting #3575

Triggered via pull request August 28, 2024 17:41
Status Success
Total duration 4m 0s
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/SnippetBaseModel.cs#L34
This line will not be executed conditionally; only the first line of this 3-line block will be. The rest will execute unconditionally. (https://rules.sonarsource.com/csharp/RSPEC-2681)
Build: CodeSnippetsReflection/SnippetBaseModel.cs#L52
"StartsWith" overloads that take a "char" should be used (https://rules.sonarsource.com/csharp/RSPEC-6610)
Build: FileService/Services/AzureBlobStorageUtility.cs#L22
Remove the field '_configuration' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Build: CodeSnippetsReflection.OData/ODataSnippetsGenerator.cs#L48
Remove this unread private field 'IsCommandLine' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
Build: CodeSnippetsReflection.OData/SnippetModel.cs#L57
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: CodeSnippetsReflection.OData/LanguageGenerators/CommonGenerator.cs#L201
'System.Exception' should not be thrown by user code. (https://rules.sonarsource.com/csharp/RSPEC-112)
Build: CodeSnippetsReflection.OData/LanguageGenerators/CommonGenerator.cs#L212
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OData/LanguageGenerators/CommonGenerator.cs#L389
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: CodeSnippetsReflection.OData/LanguageGenerators/CommonGenerator.cs#L243
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
Build: SamplesService/Services/SamplesStore.cs#L115
Remove the unused local variable 'orderSamples'. (https://rules.sonarsource.com/csharp/RSPEC-1481)