sbt/internal
Dream 1a1b1dca4a
[2.x] refactor: Extract color-default logic as a pure function (#8817)
**Problem**
The color-detection logic in Terminal.scala is interleaved with side
effects (system property reads, environment checks) making it hard to
understand and impossible to unit test.

**Solution**
Extract a pure `isColorDefault` function that takes all inputs as
parameters and returns whether color should be enabled. The existing
`useColorDefault` delegates to it. Add unit tests covering all priority
levels and heuristic branches.

Fixes #6050
2026-02-26 01:19:26 -05:00
..
example-work/src/main/scala Worker 2025-06-30 02:44:36 -04:00
util-complete Add tailrec annotations (#8785) 2026-02-22 22:20:46 -05:00
util-control [2.x] Use JProcess for interactive forking (#8677) 2026-02-02 11:03:28 -05:00
util-core/src/main Merge branch '1.11.x' into wip/merge-1.11.x 2025-09-28 23:08:36 -04:00
util-interface/src/main/java/xsbti Support debug output for macros 2025-05-27 00:58:41 -04:00
util-logging [2.x] refactor: Extract color-default logic as a pure function (#8817) 2026-02-26 01:19:26 -05:00
util-logic/src [2.x] refactor: Remove redundant conversions (#8786) 2026-02-22 23:44:17 -05:00
util-position/src [2.x] Show warnings when scalaVersion is missing 2025-12-27 23:49:43 -05:00
util-relation/src remove unnecessary `case` 2025-02-22 08:48:29 +09:00
util-scripted/src/main refactor: Clean up infix etc 2026-01-24 04:52:28 -05:00