Fix serialization and deserialization of composed types in TS #12225
sonarcloud.yml
on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
Build
2m 42s
Annotations
10 warnings
Build:
src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs#L478
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
Build:
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs#L550
Refactor this field to reduce its Cognitive Complexity from 16 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
|
Build:
src/Kiota.Builder/Writers/TypeScript/CodeConstantWriter.cs#L40
Define a constant instead of using this literal 'Original CodeElement cannot be null' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
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/TypeScriptConventionService.cs#L43
Make 'WriteAutoGeneratedStart' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
|
Build:
src/Kiota.Builder/Writers/TypeScript/CodeMethodWriter.cs#L67
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/Writers/TypeScript/CodeConstantWriter.cs#L38
Make 'WriteNavigationMetadataConstant' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
|
Build:
src/Kiota.Builder/CodeDOM/CodeComposedTypeBase.cs#L68
Offload the code that's conditional on this type test to the appropriate subclass and remove the condition. (https://rules.sonarsource.com/csharp/RSPEC-3060)
|
Build:
src/Kiota.Builder/Writers/TypeScript/CodeConstantWriter.cs#L87
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/TypeScript/CodeConstantWriter.cs#L159
Make 'GetBodySerializer' a static method. (https://rules.sonarsource.com/csharp/RSPEC-2325)
|