fix: refactor ToIdentifier() to normalize flaggable enums #1578
Annotations
10 warnings
Build and analyze:
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs#L91
Define a constant instead of using this literal 'double' 7 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs#L91
Define a constant instead of using this literal 'float' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs#L124
Define a constant instead of using this literal 'int32' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs#L126
Define a constant instead of using this literal 'int64' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs#L131
Define a constant instead of using this literal 'date-time' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs#L140
Define a constant instead of using this literal 'number' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs#L212
Define a constant instead of using this literal 'string' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build and analyze:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L188
Refactor this constructor to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build and analyze:
src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs#L45
Refactor this method to reduce its Cognitive Complexity from 70 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build and analyze:
src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs#L88
Loop should be simplified by calling Select(kvp => kvp.Key)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
|
Loading