Performance: Micro-optimisation in UdiParser (eliminate closure, fix naming & formatting of exceptions)
#22506
+45
−9
CodeScene Delta Analysis / CodeScene Code Health Review (main)
failed
Apr 17, 2026 in 40s
CodeScene PR Check
Quality Gate Failed
Gates Failed
Enforce advisory code health rules
(1 file with Large Assertion Blocks)
Gates Passed
3 Quality Gates Passed
See analysis details in CodeScene
Reason for failure
| Enforce advisory code health rules | Violations | Code Health Impact | |
|---|---|---|---|
| UdiTests.cs | 1 advisory rule | 10.00 → 9.10 | Suppress |
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
Details
🚩 Declining Code Health (highest to lowest):
- Large Assertion Blocks UdiTests.cs
Annotations
Check warning on line 172 in tests/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs
codescene-delta-analysis / CodeScene Code Health Review (main)
❌ New issue: Large Assertion Blocks
The test suite contains 5 assertion blocks with at least 4 assertions, threshold = 4. This test file has several blocks of large, consecutive assert statements. Avoid adding more.
Loading