Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable validation of specific cultures only for document updates #17087

Merged
merged 4 commits into from
Sep 25, 2024

Fix backwards compat (obsolete old method)

4aa1c3e
Select commit
Loading
Failed to load commit list.
Merged

Enable validation of specific cultures only for document updates #17087

Fix backwards compat (obsolete old method)
4aa1c3e
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (v15/dev) succeeded Sep 25, 2024 in 35s

CodeScene PR Check

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.08 (8.60 -> 8.68)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Details

✅ Improving Code Health:

  • Primitive Obsession ContentEditingService.cs
  • Primitive Obsession ContentEditingServiceBase.cs

Annotations

Check notice on line 1 in src/Umbraco.Core/Services/ContentEditingService.cs

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (v15/dev)

✅ Getting better: Primitive Obsession

The ratio of primitive types in function arguments decreases from 63.64% to 62.32%, threshold = 30.0%. The functions in this file have too many primitive types (e.g. int, double, float) in their function argument lists. Using many primitive types lead to the code smell Primitive Obsession. Avoid adding more primitive arguments.

Check notice on line 1 in src/Umbraco.Core/Services/ContentEditingServiceBase.cs

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (v15/dev)

✅ Getting better: Primitive Obsession

The ratio of primitive types in function arguments decreases from 39.66% to 38.33%, threshold = 30.0%. The functions in this file have too many primitive types (e.g. int, double, float) in their function argument lists. Using many primitive types lead to the code smell Primitive Obsession. Avoid adding more primitive arguments.

Check notice on line 1 in tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentValidationServiceTests.cs

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (v15/dev)

ℹ Getting worse: Code Duplication

introduced similar code in: Can_Validate_For_All_Languages,Can_Validate_For_Specific_Language. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.