Files
pyscn/internal/analyzer
DaisukeYoda 182bac8b71 feat: tighten CBO coupling thresholds to industry standards
Updated CBO (Coupling Between Objects) analysis to use industry-standard
thresholds for more accurate code quality assessment:

**CBO Risk Thresholds:**
- Low Risk: CBO ≤ 3 (was ≤ 5)
- Medium Risk: 3 < CBO ≤ 7 (was 5 < CBO ≤ 10)
- High Risk: CBO > 7 (was > 10)

**Coupling Ratio Thresholds:**
- Low: 5% of classes (was 10%)
- Medium: 15% of classes (was 30%)
- High: 30% of classes (was 50%)

**Coupling Penalties:**
- Low: 6 points (was 5)
- Medium: 12 points (was 10)
- High: 20 points (was 16, now aligned with other high penalties)

These changes make coupling detection more strict and aligned with industry
best practices, helping identify maintainability issues earlier.

**Files Updated:**
- domain/analyze.go: Updated coupling ratio thresholds and penalties
- domain/cbo.go: Updated default CBO thresholds with industry standard comments
- internal/analyzer/cbo.go: Updated default CBO options
- domain/analyze_test.go: Updated test expectations for new thresholds
- internal/analyzer/cbo_test.go: Updated test expectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 17:27:38 +09:00
..
2025-09-13 15:51:51 +09:00
2025-09-13 15:51:51 +09:00
2025-09-13 15:51:51 +09:00
2025-09-13 15:51:51 +09:00
2025-09-19 21:10:19 +09:00