UNI007: High coupling
What and why
Type CBO >= 15 (Critical: >= 25).
High coupling makes types fragile to upstream changes.
Threshold: CBO >= 15 (Critical: >= 25).
How to fix: introduce interfaces, facades, or reduce direct references.
Default thresholds
| Severity | Condition |
|---|---|
| Warning | CBO >= 15 |
| Critical | CBO >= 25 |
Fix guidance
Reduce direct dependencies via interfaces or facades (threshold: CBO >= 15).
Tags
maintainability
Suppression
Place // unilyze-disable UNI007 -- reason in the leading trivia of the reported type or method declaration.
Metric findings are matched by type or method name, so suppressing one overload also suppresses same-name overloads.
For partial types, place the directive on the declaration indexed by unilyze.
For project-wide suppression, use "rules": { "UNI007": "off" }; use a baseline to freeze existing findings while reporting new ones.