Skip to content

chore: shrink detekt baseline 415 → 410 (genuine cleanups only)#162

Merged
Skobeltsyn merged 1 commit into
mainfrom
chore/detekt-baseline-shrink
Jun 7, 2026
Merged

chore: shrink detekt baseline 415 → 410 (genuine cleanups only)#162
Skobeltsyn merged 1 commit into
mainfrom
chore/detekt-baseline-shrink

Conversation

@Skobeltsyn
Copy link
Copy Markdown
Contributor

Lowest-hanging detekt-baseline reductions that genuinely improve the code — not a mechanical line-wrap spree. On inspection the bulk of the MaxLineLength baseline is intentional (table-aligned test fixtures, inline JSON wire-templates) and reads worse if wrapped, so I left it alone. Only the genuinely-clean code changes:

  • ClaudeClient / OpenAiClientkotlinx.coroutines.flow.FlowCollector inline FQN → an import in all three parseSseStream signatures (shorter, clearer; −3 MaxLineLength).
  • ClaudeClient — wrap the over-long cacheControl conditional (−1).
  • OpenAiClient — wrap the over-long provider-error throw (−1).
  • MockTcpMcpServer — the unused private val acceptThread becomes an init { } block (same start-on-construction, no retained handle; −1 UnusedPrivateProperty). TcpTransportTest stays green.

Full ./gradlew build green; all tests pass; the ratchet tightens 415 → 410.

🤖 Generated with Claude Code

Lowest-hanging detekt-baseline reductions that genuinely IMPROVE the code
(not mechanical line-wraps — the bulk of the MaxLineLength baseline is
intentional: table-aligned test fixtures and inline JSON wire-templates,
which read worse if wrapped, so left alone).

- ClaudeClient / OpenAiClient: `kotlinx.coroutines.flow.FlowCollector`
  inline FQN -> an import in all three `parseSseStream`-related signatures
  (shorter, clearer; -3 MaxLineLength).
- ClaudeClient: wrap the over-long `cacheControl` conditional (-1).
- OpenAiClient: wrap the over-long provider-error throw (-1).
- MockTcpMcpServer: the unused `private val acceptThread` becomes an
  `init { }` block — same start-on-construction, no retained handle
  (-1 UnusedPrivateProperty). TcpTransportTest stays green.

Full ./gradlew build green; all tests pass; baseline ratchet tightened to 410.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Skobeltsyn Skobeltsyn merged commit aeae9b9 into main Jun 7, 2026
3 of 4 checks passed
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.

1 participant