Files
DeepSeek-Reasonix/scripts
yhh 63d409359d build(lint): make function size and complexity a gate, not a report
The complexity monitor ran funlen and cyclop with issues-exit-code forced to 0
and said so in its own script: "Future work: block only new violations relative
to this baseline." A report nobody is blocked by is a report nobody reads, and
that future is now buildable — repolint's ratchet already carries five rules.

Measuring in repolint rather than parsing golangci-lint output keeps one set of
semantics (weight is the excess over the limit, per file and repo-wide) and
widens the scope from internal/agent to the whole tree. The thresholds are the
ones the monitor already used: 120 lines, complexity 30, tests excluded.

What that surfaces is not marginal: build is 1932 lines at complexity 309, and
chatTUI.update is 1005 at 252. Both are frozen now — they cannot gain a line or
a branch.

The report-only script, its config, and its two CI steps are deleted rather
than kept alongside: the same metrics now have a gate that stops people.
2026-08-07 08:04:10 -07:00
..