Skip to content

Variants Sorting: Sort by language name (fix #21408) - #21435

Merged
nielslyngsoe merged 9 commits into
v18/devfrom
v17/bugfix/21408
Jan 23, 2026
Merged

nielslyngsoe merged 9 commits into
v18/devfrom
v17/bugfix/21408

revert config file commit

cb59900
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
CodeScene Delta Analysis / CodeScene Code Health Review (v18/dev) succeeded Jan 16, 2026 in 33s

CodeScene PR Check

Quality Gate Passed

Code Health Improved (1 files improve in Code Health)

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

View Improvements
File Code Health Impact Categories Improved
utils.ts 9.45 → 9.69 Complex Method

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

✅ Improving Code Health:

  • Complex Method utils.ts: sortVariants

Annotations

Check notice on line 63 in src/Umbraco.Web.UI.Client/src/packages/documents/documents/utils.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (v18/dev)

✅ No longer an issue: Complex Method

sortVariants is no longer above the threshold for cyclomatic complexity. 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.