Update dotnet new umbraco-extension template with newer @hey-api/openapi-ts #19825
CodeScene PR Check
Quality Gate Failed
Gates Failed
New code is healthy
(2 new files with code health below 9.00)
Enforce critical code health rules
(2 files with Bumpy Road Ahead, Deep, Nested Complexity)
Enforce advisory code health rules
(3 files with Complex Method, Complex Conditional)
Gates Passed
1 Quality Gates Passed
See analysis details in CodeScene
Reason for failure
| New code is healthy | Violations | Code Health Impact | |
|---|---|---|---|
| params.gen.ts | 4 rules | 10.00 → 7.99 | Suppress |
| utils.gen.ts | 3 rules | 10.00 → 8.31 | Suppress |
| Enforce critical code health rules | Violations | Code Health Impact | |
|---|---|---|---|
| params.gen.ts | 2 critical rules | 10.00 → 7.99 | Suppress |
| utils.gen.ts | 2 critical rules | 10.00 → 8.31 | Suppress |
| Enforce advisory code health rules | Violations | Code Health Impact | |
|---|---|---|---|
| params.gen.ts | 2 advisory rules | 10.00 → 7.99 | Suppress |
| utils.gen.ts | 1 advisory rule | 10.00 → 8.31 | Suppress |
| pathSerializer.gen.ts | 1 advisory rule | 10.00 → 9.37 | Suppress |
Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Details
🚩 Declining Code Health (highest to lowest):
- Deep, Nested Complexity params.gen.ts: buildClientParams
- Deep, Nested Complexity utils.gen.ts: querySerializer
- Bumpy Road Ahead params.gen.ts: buildClientParams
- Complex Method params.gen.ts: buildClientParams
- Complex Method utils.gen.ts: defaultPathSerializer
- Complex Method pathSerializer.gen.ts: serializeObjectParam
- Complex Conditional params.gen.ts: stripEmptySlots
- Complex Method utils.gen.ts: querySerializer
- Complex Method pathSerializer.gen.ts: serializeArrayParam
- Complex Method utils.gen.ts: getParseAs
- Bumpy Road Ahead utils.gen.ts: querySerializer
- Bumpy Road Ahead utils.gen.ts: setAuthParams
Annotations
Check warning on line 95 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
defaultPathSerializer has a cyclomatic complexity of 12, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check warning on line 143 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
querySerializer has a cyclomatic complexity of 11, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check warning on line 189 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
getParseAs has a cyclomatic complexity of 9, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check warning on line 143 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Bumpy Road Ahead
querySerializer has 4 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 225 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Bumpy Road Ahead
setAuthParams has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 143 in templates/UmbracoExtension/Client/src/api/client/utils.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Deep, Nested Complexity
querySerializer has a nested complexity depth of 4, threshold = 4. This function contains deeply nested logic such as if statements and/or loops. The deeper the nesting, the lower the code health.
Check warning on line 153 in templates/UmbracoExtension/Client/src/api/core/params.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
buildClientParams has a cyclomatic complexity of 13, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check warning on line 80 in templates/UmbracoExtension/Client/src/api/core/params.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Conditional
stripEmptySlots has 1 complex conditionals with 2 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.
Check warning on line 153 in templates/UmbracoExtension/Client/src/api/core/params.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Bumpy Road Ahead
buildClientParams has 5 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.
Check warning on line 153 in templates/UmbracoExtension/Client/src/api/core/params.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Deep, Nested Complexity
buildClientParams has a nested complexity depth of 7, threshold = 4. This function contains deeply nested logic such as if statements and/or loops. The deeper the nesting, the lower the code health.
Check warning on line 181 in templates/UmbracoExtension/Client/src/api/core/pathSerializer.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
serializeObjectParam has a cyclomatic complexity of 12, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
Check warning on line 111 in templates/UmbracoExtension/Client/src/api/core/pathSerializer.gen.ts
codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)
❌ New issue: Complex Method
serializeArrayParam has a cyclomatic complexity of 11, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.