Skip to content

refactor: comprehensive lint + eliminate all suppressions#7

Merged
jorisjonkers-dev-agents[bot] merged 4 commits into
mainfrom
ci/full-lint
Jul 1, 2026
Merged

refactor: comprehensive lint + eliminate all suppressions#7
jorisjonkers-dev-agents[bot] merged 4 commits into
mainfrom
ci/full-lint

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

Comprehensive type-resolution detekt across all source sets + ktlint, and every pre-existing suppression eliminated by fixing it for real. No @Suppress, baseline, or threshold relaxation added.

Agents Agent added 2 commits July 1, 2026 19:28
…rename

Two integration tests regressed when the lint cleanup renamed test methods
from backtick-quoted to camelCase, changing JUnit 5's default execution order:

1. addTopicRefusesANonAdminBearer: the rename caused
   addTopicWithAnAdminBearerInsertsTheSlugAndSurfacesItViaListTopics to run
   first, inserting the 'rust' topic. IntegrationTestBase.resetSharedState()
   truncates kb_notes/kb_relations but never touches kb_topics, so the topic
   bled into the next test. Fix: add @AfterEach cleanTopics that deletes all
   kb_topics with created_by != 'seed' (Flyway-seeded rows are preserved).
   Also change seedTopic() from createdBy = "seed" to createdBy =
   "test-fixture" so test-fixture rows are covered by the cleanup.

2. mcpPingWithValidBearerReturnsEmptyResultAndSetsXUserId: the lint cleanup
   updated the assertion from body["id"].asInt() == 42 to
   body["id"].asText() == "test-request" but left the request body sending
   "id":42. Fix: align the request body to send "id":"test-request".

No @Suppress added. @Suppress count remains 0.
Fold the per-class topic cleanup into the existing @beforeeach (equivalent isolation, one fewer function so the class stays under TooManyFunctions), wrap two over-length lines, and drop the now-unused AfterEach import.
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot merged commit aea091c into main Jul 1, 2026
12 checks passed
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot deleted the ci/full-lint branch July 1, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant