Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Umbraco.Core/UdiEntityTypeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
return UmbracoObjectTypes.FormsDataSource;
case Constants.UdiEntityType.Language:
return UmbracoObjectTypes.Language;
case Constants.UdiEntityType.Element:
return UmbracoObjectTypes.Element;
case Constants.UdiEntityType.ElementContainer:
return UmbracoObjectTypes.ElementContainer;

Check warning on line 117 in src/Umbraco.Core/UdiEntityTypeHelper.cs

View check run for this annotation

CodeScene Delta Analysis / CodeScene Code Health Review (release/18.0)

❌ Getting worse: Complex Method

ToUmbracoObjectType increases in cyclomatic complexity from 19 to 21, 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.
}

throw new NotSupportedException(
Expand Down
Loading