Skip to content

Reduce Content validator complexity for release Sonar gate #1027

Description

@Brad-Edwards

Summary

PR #1026 (dev to main) is blocked by SonarCloud because Content.validate_type_requirements() has cognitive complexity 15, above the authorized threshold of 10.

Required outcome

Refactor the validator without changing Content validation behavior, add focused regression coverage where needed, and restore the Sonar quality gate for the next dev analysis.

Acceptance criteria

  • Content.validate_type_requirements() is at or below the configured Sonar complexity threshold.
  • Existing Content validation behavior remains covered and unchanged.
  • Repository completion, policy, CI, and Sonar gates pass.

Requirements

  • DSL-436 — Initial service state and native materialization semantics

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-progressAn agent is actively working this issue via /implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions