Skip to content

ci(lint): gocognit threshold to 15, production code only - #564

Merged
bpalermo merged 1 commit into
mainfrom
ci/gocognit-threshold-15
Jul 19, 2026
Merged

bpalermo merged 1 commit into
mainfrom
ci/gocognit-threshold-15

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Flips the gocognit ratchet 109→15 now that the #556 campaign (PRs #558–#563) refactored all 65 production offenders. Scopes the aspect to production rules (go_library/go_binary) — test harnesses are deliberately not complexity-gated. Includes the one function the lane partition missed (RegistryRefresher.Start, 23→≤15, extracted refreshLoop helpers, debounce/leading-edge semantics byte-identical).

Validated: bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //... green; //agent/internal/xds/... tests pass.

Closes #556

🤖 Generated with Claude Code

https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR

The #556 campaign (PRs #558-#563) refactored all 65 production functions
over 15. This flips the ratchet from 109 to the 15 target, scopes the
aspect to go_library/go_binary (complexity-gating validated e2e and
conformance test harnesses adds churn risk for no production value), and
fixes the one offender the lane partition missed: RegistryRefresher.Start
(23 -> extracted refreshLoop helpers, semantics byte-identical).

Closes #556

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo
bpalermo merged commit 498ad4a into main Jul 19, 2026
14 checks passed
@bpalermo
bpalermo deleted the ci/gocognit-threshold-15 branch July 19, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(lint): ratchet gocognit threshold down from 109 toward 20

1 participant