Skip to content

refactor: Harden detekt setup, address some issues - #507

Merged
kpavlov merged 1 commit into
mainfrom
kpavlov/harden-detekt
Feb 13, 2026
Merged

refactor: Harden detekt setup, address some issues#507
kpavlov merged 1 commit into
mainfrom
kpavlov/harden-detekt

Conversation

@kpavlov

@kpavlov kpavlov commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Detekt setup hardeing; address some issues

  • Address some detekt findings: missing KDocs, formatting, use check* & `orEmpty()``
  • Remove unnecessary KDoc comments from deprecated classes in types.kt
  • Add Detekt baseline XML files for all modules
  • Enforce stricter Detekt rules by setting failOnSeverity from None to Error

Motivation and Context

Detekt is not actually failing the build on violations. This PR is enabling Detekt to fail on errors. Baseline fines added for historical issues. Follow-up for #501

How Has This Been Tested?

Regressions

Breaking Changes

No breaking changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactoring
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@kpavlov kpavlov added the refactoring Code improvements and refactoring label Feb 6, 2026
@kpavlov kpavlov mentioned this pull request Feb 6, 2026
13 tasks
@kpavlov
kpavlov force-pushed the kpavlov/harden-detekt branch from 9bf6c68 to 02cb573 Compare February 6, 2026 13:58
e5l
e5l previously approved these changes Feb 11, 2026

@e5l e5l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a GitHub Action to lint PRs before merging this one.

It would also be nice if we manage to autorun the formatter before commit or as an additional commit, I would log a task issue for that

devcrocod
devcrocod previously approved these changes Feb 11, 2026

@devcrocod devcrocod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kpavlov
kpavlov dismissed stale reviews from devcrocod and e5l via 604897f February 13, 2026 19:57
@kpavlov
kpavlov force-pushed the kpavlov/harden-detekt branch 3 times, most recently from 91dee96 to da793ec Compare February 13, 2026 20:02
…ce Detekt setup

- Address some detekt findings: missing KDocs, formatting, use `check*` & `orEmpty()``
- Remove unnecessary KDoc comments from deprecated classes in `types.kt`
- Add Detekt baseline XML files for all modules
- Enforce stricter Detekt rules by setting `failOnSeverity` to `Error`

No breaking changes.
@kpavlov
kpavlov force-pushed the kpavlov/harden-detekt branch from da793ec to ac6b5d9 Compare February 13, 2026 20:03
@kpavlov
kpavlov marked this pull request as ready for review February 13, 2026 20:17
@kpavlov

kpavlov commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is aligned with the latest changes from the main branch. I’ll merge it promptly before it drifts out of sync again.

@kpavlov
kpavlov merged commit ed9ad83 into main Feb 13, 2026
13 checks passed
@kpavlov
kpavlov deleted the kpavlov/harden-detekt branch February 13, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Code improvements and refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants