Skip to content

Fix python failing integration tests #12954

Fix python failing integration tests

Fix python failing integration tests #12954

Triggered via pull request November 7, 2024 10:40
Status Success
Total duration 3m 21s
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/Refiners/PythonRefiner.cs#L163
Refactor this field to reduce its Cognitive Complexity from 19 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L395
Define a constant instead of using this literal 'Optional[' 7 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Build: src/Kiota.Builder/Writers/Python/PythonConventionService.cs#L24
Make 'AddRequestBuilderBody' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/PythonConventionService.cs#L73
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/PythonConventionService.cs#L122
Make 'TypeExistInSameClassAsTarget' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/PythonConventionService.cs#L129
Make 'IsPrimitiveType' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/PythonConventionService.cs#L144
Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Kiota.Builder/Refiners/PythonRefiner.cs#L202
Refactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L116
Make 'WriteRawUrlBuilderBody' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs#L44
Loop should be simplified by calling Select(parameter => parameter.Name)) (https://rules.sonarsource.com/csharp/RSPEC-3267)