fix/security reports #1921
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
Build
3m 40s
Annotations
10 warnings
Build:
src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L76
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
Build:
src/Microsoft.OpenApi/Expressions/RuntimeExpression.cs#L13
Seal class 'RuntimeExpression' or implement 'IEqualityComparer<T>' instead. (https://rules.sonarsource.com/csharp/RSPEC-4035)
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L140
All 'WriteValue' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L154
Either merge this branch with the identical one on line 146 or change one of the implementations. (https://rules.sonarsource.com/csharp/RSPEC-1871)
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L171
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build:
src/Microsoft.OpenApi/Writers/OpenApiWriterAnyExtensions.cs#L117
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L92
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L268
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L417
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L486
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
|