Skip to content

Remove stringify from primitive types #12711

Remove stringify from primitive types

Remove stringify from primitive types #12711

Triggered via pull request October 16, 2024 16:37
Status Success
Total duration 3m 50s
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/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L393
Define a constant instead of using this literal 'Optional[' 7 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L115
Make 'WriteRawUrlBuilderBody' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L43
Loop should be simplified by calling Select(parameter => parameter.Name)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L138
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L167
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L327
Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L376
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L430
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L502
Make 'WriteDeserializerBodyForUnionModel' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L518
Make 'WriteDeserializerBodyForIntersectionModel' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)