chore/tasks linting #3582
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
Build
3m 36s
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:
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#L243
Loops should be simplified using the "Where" LINQ method (https://rules.sonarsource.com/csharp/RSPEC-3267)
|
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:
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.OpenAPI/SnippetModel.cs#L53
Define a constant instead of using this literal '/drives/driveId/items/root/' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|