Skip to content

Fix serialization and deserialization of composed types in TS #12684

Fix serialization and deserialization of composed types in TS

Fix serialization and deserialization of composed types in TS #12684

Triggered via pull request October 15, 2024 11:17
Status Success
Total duration 3m 24s
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/TypeScriptRefiner.cs#L686
Refactor this field to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs#L228
All 'IsPrimitiveType' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs#L173
Define a constant instead of using this literal 'break;' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Build: src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs#L43
Make 'WriteAutoGeneratedStart' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs#L49
Make 'WriteAutoGeneratedEnd' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
Build: src/Kiota.Builder/Writers/TypeScript/CodeMethodWriter.cs#L69
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Refiners/TypeScriptRefiner.cs#L686
Refactor this field to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs#L228
All 'IsPrimitiveType' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs#L173
Define a constant instead of using this literal 'break;' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
Build: src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs#L43
Make 'WriteAutoGeneratedStart' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)