Cha

v1.0.7

v1.0.7 Apr 20 2026 at 08:29 UTC

Added

  • Module inference rewrite: directory elbow + LCOM4 adaptive split + ICR + TCC quality metrics
  • cha layers --depth N to override auto-detected directory depth
  • cha layers --format dsm|terminal output formats
  • Composite risk scoring for long_method: risk = lines_ratio × complexity_factor

Changed

  • Module inference algorithm: replaced Union-Find with directory elbow + LCOM4 + ICR
  • long_method severity now based on composite risk (Hint/Warning/Error at risk 1/2/4)

Fixed

  • cha:ignore directive now covers up to 2 lines before a function
  • Fixed corrupted dot output and switched to LR layout for better layer readability