Skip to content

fix: primitive parsing for strings as DateTimes is too greedy #1587

fix: primitive parsing for strings as DateTimes is too greedy

fix: primitive parsing for strings as DateTimes is too greedy #1587

Triggered via pull request February 20, 2025 15:51
Status Success
Total duration 9m 36s
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: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L139
All 'WriteValue' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L24
All 'WriteProperty' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L248
All 'WriteRequiredMap' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Microsoft.OpenApi/Models/OpenApiConstants.cs#L696
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
Build: src/Microsoft.OpenApi/Models/OpenApiConstants.cs#L701
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
Build: src/Microsoft.OpenApi/Models/OpenApiConstants.cs#L706
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L232
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L440
Make 'WriteV2Examples' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L144
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterExtensions.cs#L172
Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type. (https://rules.sonarsource.com/csharp/RSPEC-2955)