Commit graph kotlin-sdk/config/detekt/detekt.yml
Author SHA1 Message Date
dependabot[bot]
4531a4c846
chore(deps): bump dev.detekt:detekt-gradle-plugin from 2.0.0-alpha.3 to 2.0.0-alpha.5 (#849)
Bumps
[dev.detekt:detekt-gradle-plugin](https://github.com/detekt/detekt) from
2.0.0-alpha.3 to 2.0.0-alpha.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/detekt/detekt/releases">dev.detekt:detekt-gradle-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.0-alpha.5</h2>
<h2>2.0.0-alpha.5 - 2026-06-17</h2>
<p>This is a hotfix release for <code>2.0.0-alpha.4</code> where we
fixed 2 bugs that were preventing detekt from running correctly.</p>
<h3>Changelog</h3>
<ul>
<li>fix: stop leaking ktlint-repackage as a transitive dependency - <a
href="https://redirect.github.com/detekt/detekt/pull/9391">#9391</a></li>
<li>fix: exclude gradle-public-api from published POM - <a
href="https://redirect.github.com/detekt/detekt/pull/9408">#9408</a></li>
<li>Stop accepting unsupported API or language versions passed to CLI -
<a
href="https://redirect.github.com/detekt/detekt/pull/9410">#9410</a></li>
</ul>
<h2>v2.0.0-alpha.4</h2>
<h2>2.0.0-alpha.4 - 2026-06-13</h2>
<p>This is an alpha release of Detekt 2.0.0. Is built against Kotlin
2.4.0, Gradle 9.5.1, AGP 9.2.1 and is tested against JDK 25.</p>
<h3>Notable Changes</h3>
<ul>
<li>Support Kotlin 2.4.0 - <a
href="https://redirect.github.com/detekt/detekt/pull/9218">#9218</a></li>
<li>Add new rule <code>LeakingSessionBoundType</code> - <a
href="https://redirect.github.com/detekt/detekt/pull/9242">#9242</a></li>
<li>Apply the <code>indent_style</code> configuration to all the ktlint
wrapper rules (previsouly this was applied only to the
<code>Indentation</code> rule) - <a
href="https://redirect.github.com/detekt/detekt/pull/9315">#9315</a></li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li>Expose Glob-to-Regex functions in <code>psi-utils</code> - <a
href="https://redirect.github.com/detekt/detekt/pull/9340">#9340</a></li>
<li>Make <code>Detektion</code> immutable - <a
href="https://redirect.github.com/detekt/detekt/pull/8583">#8583</a></li>
</ul>
<h3>Changelog</h3>
<ul>
<li>fix: prevent ArrayPrimitive crash on unresolved types - <a
href="https://redirect.github.com/detekt/detekt/pull/9364">#9364</a></li>
<li>Update ktlint documentation links - <a
href="https://redirect.github.com/detekt/detekt/pull/9354">#9354</a></li>
<li>Fix PrintStackTrace nested call detection - <a
href="https://redirect.github.com/detekt/detekt/pull/9352">#9352</a></li>
<li>Fix unused import false positive for companion object member
extension properties - <a
href="https://redirect.github.com/detekt/detekt/pull/9349">#9349</a></li>
<li>Accept punctuation after a link - <a
href="https://redirect.github.com/detekt/detekt/pull/9341">#9341</a></li>
<li>Fixes UnnecessaryFullyQualifiedName false positive with explicit
import shadowing - <a
href="https://redirect.github.com/detekt/detekt/pull/9329">#9329</a></li>
<li>docs: fix KMP type resolution task names - <a
href="https://redirect.github.com/detekt/detekt/pull/9316">#9316</a></li>
<li>Stop publishing ktlint-repackage - <a
href="https://redirect.github.com/detekt/detekt/pull/9314">#9314</a></li>
<li>Stop exposing ktlint's StandardRule to detekt-rules-ktlint-wrapper
consumers - <a
href="https://redirect.github.com/detekt/detekt/pull/9313">#9313</a></li>
<li>Include ktlint-repackage in ktlint-wrapper JAR - <a
href="https://redirect.github.com/detekt/detekt/pull/9312">#9312</a></li>
<li>Declare DGP compatibility with Gradle's configuration cache - <a
href="https://redirect.github.com/detekt/detekt/pull/9311">#9311</a></li>
<li>Forward languageVersionSettings to KotlinAnalysisApiEngine.compile -
<a
href="https://redirect.github.com/detekt/detekt/pull/9305">#9305</a></li>
<li>docs: add ForbiddenImport configuration example - <a
href="https://redirect.github.com/detekt/detekt/pull/9302">#9302</a></li>
<li>Fix <code>UnnecessaryFullyQualifiedName</code> clashes with kotlin
package name - <a
href="https://redirect.github.com/detekt/detekt/pull/9289">#9289</a></li>
<li>Remove excludeImportStatements from Deprecation rule - <a
href="https://redirect.github.com/detekt/detekt/pull/9287">#9287</a></li>
<li>Improve repackaging of Analysis API dependencies - <a
href="https://redirect.github.com/detekt/detekt/pull/9285">#9285</a></li>
<li>MaxChainedCallsOnSameLine - Fix AA type leaks - <a
href="https://redirect.github.com/detekt/detekt/pull/9261">#9261</a></li>
<li>SuspendFunSwallowedCancellation - Fix AA type leaks - <a
href="https://redirect.github.com/detekt/detekt/pull/9256">#9256</a></li>
<li>feat: Add exhaustive option to OutdatedDocumentation rule, also
improve error messages - <a
href="https://redirect.github.com/detekt/detekt/pull/9255">#9255</a></li>
<li>Excluding generated sources by default - <a
href="https://redirect.github.com/detekt/detekt/pull/9251">#9251</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9c6ced6339"><code>9c6ced6</code></a>
Stop accepting unsupported API or language versions passed to CLI (<a
href="https://redirect.github.com/detekt/detekt/issues/9410">#9410</a>)</li>
<li><a
href="44526f4564"><code>44526f4</code></a>
fix: exclude gradle-public-api from published POM (<a
href="https://redirect.github.com/detekt/detekt/issues/9408">#9408</a>)</li>
<li><a
href="6bad2e8a81"><code>6bad2e8</code></a>
fix: stop leaking ktlint-repackage as a transitive dependency (<a
href="https://redirect.github.com/detekt/detekt/issues/9391">#9391</a>)</li>
<li><a
href="fd5683e47a"><code>fd5683e</code></a>
Update dependency path-to-regexp to v0.2.5 (<a
href="https://redirect.github.com/detekt/detekt/issues/9397">#9397</a>)</li>
<li><a
href="7865b27e71"><code>7865b27</code></a>
fix: resolve npm security vulnerabilities in website and bots
dependencies (#...</li>
<li><a
href="bb582d5e6a"><code>bb582d5</code></a>
Unbreak snapshot publishing (<a
href="https://redirect.github.com/detekt/detekt/issues/9394">#9394</a>)</li>
<li><a
href="69866dd873"><code>69866dd</code></a>
Update caniuse browser definitions (<a
href="https://redirect.github.com/detekt/detekt/issues/9393">#9393</a>)</li>
<li><a
href="bfd3b5d4ef"><code>bfd3b5d</code></a>
Add Docs for 2.0.0-alpha.4 (<a
href="https://redirect.github.com/detekt/detekt/issues/9388">#9388</a>)</li>
<li><a
href="60300b2d43"><code>60300b2</code></a>
Switch to vanniktech/gradle-maven-publish-plugin for publishing (<a
href="https://redirect.github.com/detekt/detekt/issues/9357">#9357</a>)</li>
<li><a
href="63e0777f45"><code>63e0777</code></a>
Update gradle/actions digest to 3f131e8 (<a
href="https://redirect.github.com/detekt/detekt/issues/9386">#9386</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/detekt/detekt/compare/v2.0.0-alpha.3...v2.0.0-alpha.5">compare
view</a></li>
</ul>
</details>
<br />

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: devcrocod <devcrocod@gmail.com>
2026-07-02 22:37:39 +02:00
Pavel Gorgulov
64804a05c2
refactor: explicit locked detekt config (#729)
Migrate detekt to a convention plugin in `buildSrc`, switch the project
to a fully explicit YAML config (`buildUponDefaultConfig = false`), fix
the real findings that this stricter setup revealed, and remove
`@Suppress` annotations that became unnecessary after the rule changes.

## Motivation and Context
- Explicit visibility into the rule set
- Lock against detekt version upgrades

## Breaking Changes
None

## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed
2026-04-29 12:31:49 +02:00
Pavel Gorgulov
33923bc7c9
feat(docs): public api kdocs (#658)
- enable rule for checking undocumented public api 
- add kdoc skill

## How Has This Been Tested?
./gradlew detekt

## Breaking Changes
none

## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [x] I have added or updated documentation as needed

---------

Co-authored-by: Konstantin Pavlov <1517853+kpavlov@users.noreply.github.com>
2026-04-02 14:41:48 +02:00
Pavel Gorgulov
435698a611
refactor(integration-test): modernize ts tests, update versions, rename SSE -> HTTP (#618)
- add tsconfig
- fix tsignore
- rename sse -> http
- clean up code

## How Has This Been Tested?
all tests passed

## Breaking Changes
none

## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed
2026-03-26 13:19:10 +01:00
Konstantin Pavlov
3e7ea39bf7
chore: relax Detekt rules for tests (#582)
- Updated `detekt.yml` to exclude test folders from
`EmptyFunctionBlock`, `LargeClass`, and `LongMethod` checks.
- Cleanup detekt-baseline files.
- Simplified `.idea/detekt.xml`.

## Motivation and Context
To reduce linter noise and reduce tension

## How Has This Been Tested?
`./gradlew detekt`

## Breaking Changes
No

## Types of changes
- [x] Build tool/ci update

## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [ ] I have added or updated documentation as needed

## Additional context

#567
2026-03-03 23:46:32 +02:00
dependabot[bot]
4501f14b56
Bump dev.detekt from 2.0.0-alpha.1 to 2.0.0-alpha.2 (#512) 2026-02-13 21:19:06 +02:00
Pavel Gorgulov
6f1c120c27
Detekt configuration (#501)
- generate detekt config
- enable several rules
- disable ktlint backing property check

## Motivation and Context
Centralized control of detekt rules. Using detekt 2 configuration

## How Has This Been Tested?
locally

## Breaking Changes
-

## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update

## Checklist
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [ ] I have added or updated documentation as needed
2026-02-04 17:02:58 +02:00