Do not allow save of invalid domains #16880
Merged
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (release/14.2)
failed
Aug 7, 2024 in 40s
CodeScene PR Check
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.10 (9.22 -> 9.12)
- Declining Code Health: 1 findings(s) 🚩
Details
🚩 Declining Code Health (highest to lowest):
- Complex Method DomainService.cs: UpdateDomainsAsync
Annotations
Check warning on line 209 in src/Umbraco.Core/Services/DomainService.cs
codescene-delta-analysis / CodeScene Cloud Delta Analysis (release/14.2)
❌ New issue: Complex Method
UpdateDomainsAsync 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.
codescene-delta-analysis / CodeScene Cloud Delta Analysis (release/14.2)
ℹ Getting worse: Code Duplication
introduced similar code in: Cannot_Assign_Duplicate_Domains,Cannot_Assign_Invalid_Domains. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.
Loading