Static code analysis for Kotlin
This report summarizes scanner evidence for detekt/detekt, a Kotlin project with 7,106 GitHub stars. SynthScan examined 141,884 lines of code across 1308 source files, recording 74 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 3 finding(s).
Are imports declared and package/API names verified? 37 finding(s).
Are wrappers, guards, and repeated structures necessary? 34 finding(s).
Which changes need focused human review? 74 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 74 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package cases /** * a comment */ @suppress("unused") class default | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package cases /** * a comment */ @suppress("unused") class default | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package cases /** * a comment */ @suppress("unused") class default | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package empty @suppress("unused") enum class emptyenum | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package empty @suppress("unused") enum class emptyenum | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package empty @suppress("unused") enum class emptyenum | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package empty @suppress("unused") interface emptyinterface | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package empty @suppress("unused") interface emptyinterface | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package empty @suppress("unused") interface emptyinterface | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 } | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 } | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 } | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { // | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { // | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { // | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/complexity/package.kt | 0 | package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2 | STRING |
| HIGH | …rc/test/kotlin/dev/detekt/report/statistics/package.kt | 0 | package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2 | STRING |
| HIGH | …c/test/kotlin/dev/detekt/metrics/processors/package.kt | 0 | package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2 | STRING |
| HIGH | …t/kotlin/dev/detekt/rules/naming/FunctionNamingSpec.kt | 0 | data class d(val i: int, val j: int) fun dostuff() { val (_, holy_grail) = d(5, 4) } | STRING |
| HIGH | …t/kotlin/dev/detekt/rules/naming/VariableNamingSpec.kt | 0 | data class d(val i: int, val j: int) fun dostuff() { val (_, holy_grail) = d(5, 4) } | STRING |
| HIGH | …test/kotlin/dev/detekt/rules/naming/ClassNamingSpec.kt | 0 | data class d(val i: int, val j: int) fun dostuff() { val (_, holy_grail) = d(5, 4) } | STRING |
| HIGH | …/rules/style/ExplicitItLambdaMultipleParametersSpec.kt | 0 | fun f() { val digits = 1234.let { it -> listof(it) println(it) } } | STRING |
| HIGH | …v/detekt/rules/style/MultilineLambdaItParameterSpec.kt | 0 | fun f() { val digits = 1234.let { it -> listof(it) println(it) } } | STRING |
| HIGH | …ev/detekt/rules/style/ExplicitItLambdaParameterSpec.kt | 0 | fun f() { val digits = 1234.let { it -> listof(it) println(it) } } | STRING |
| HIGH | …lin/dev/detekt/rules/ktlintwrapper/KdocWrappingSpec.kt | 0 | /* some comment 1 */ val foo1 = "foo1" /* some comment 2 */val foo2 = "foo2" /* some comment 3 */ fun foo3() = "foo3" /* | STRING |
| HIGH | …/dev/detekt/rules/ktlintwrapper/CommentWrappingSpec.kt | 0 | /* some comment 1 */ val foo1 = "foo1" /* some comment 2 */val foo2 = "foo2" /* some comment 3 */ fun foo3() = "foo3" /* | STRING |
| HIGH | …kt/rules/ktlintwrapper/NoSingleLineBlockCommentSpec.kt | 0 | /* some comment 1 */ val foo1 = "foo1" /* some comment 2 */val foo2 = "foo2" /* some comment 3 */ fun foo3() = "foo3" /* | STRING |
| HIGH | …in/dev/detekt/gradle/DetektAndroidBuiltInKotlinSpec.kt | 0 | dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } } | STRING |
| HIGH | …onalTest/kotlin/dev/detekt/gradle/DetektAndroidSpec.kt | 0 | dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } } | STRING |
| HIGH | …st/kotlin/dev/detekt/gradle/DetektMultiplatformSpec.kt | 0 | dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } } | STRING |
| HIGH | …est/kotlin/dev/detekt/gradle/report/ReportMergeSpec.kt | 0 | dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } } | STRING |
| HIGH | …Test/kotlin/dev/detekt/gradle/DetektReportMergeSpec.kt | 0 | dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} } | STRING |
| HIGH | …/kotlin/dev/detekt/gradle/DetektTaskMultiModuleSpec.kt | 0 | dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} } | STRING |
| HIGH | …est/kotlin/dev/detekt/gradle/report/ReportMergeSpec.kt | 0 | dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} } | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 282 | // Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 282 | // Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 283 | /* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 283 | /* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 286 | * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 286 | * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut la | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 24 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 24 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 31 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 31 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 156 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 156 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 165 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 165 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 289 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 289 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 292 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 292 | val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 71 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 71 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 202 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 202 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 307 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW | …est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt | 307 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 88 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor in | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 88 | fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor in | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 92 | * This is a constant for "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 92 | * This is a constant for "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod t | COMMENT |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 94 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor in | CODE |
| LOW⚡ | …est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt | 94 | val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor in | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …tlin/dev/detekt/rules/style/ForbiddenMethodCallSpec.kt | 359 | val methodName = "dev.detekt.rules.style.TestClass.Companion.staticMethod()" | STRING |
| CRITICAL | …tlin/dev/detekt/rules/style/ForbiddenMethodCallSpec.kt | 382 | val methodName = "dev.detekt.rules.style.TestClass.Companion.staticMethod()" | STRING |
| CRITICAL | …eptions/ThrowingExceptionsWithoutMessageOrCauseSpec.kt | 42 | org.assertj.core.api.Assertions.assertThatIllegalArgumentException().isThrownBy { println() } | CODE |
| CRITICAL | …n/dev/detekt/rules/complexity/LongParameterListSpec.kt | 185 | org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo("LongCtor") | STRING |
| CRITICAL | …n/dev/detekt/rules/complexity/LongParameterListSpec.kt | 202 | org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo($$"LongCtor$constructor") | STRING |
| CRITICAL | …n/dev/detekt/rules/complexity/LongParameterListSpec.kt | 219 | org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo($$"LongCtor$fun a") | STRING |
| CRITICAL | …n/dev/detekt/rules/complexity/LongParameterListSpec.kt | 234 | org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo("fun a") | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/CONTRIBUTING.md | 19 | ## A note on AI-generated contributions | COMMENT |
| HIGH | .github/CONTRIBUTING.md | 22 | - However, we do have a special policy for contributions that appear to be **entirely generated by AI**: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gradle/libs.versions.toml | 21 | # This represents the oldest AGP 9 version that is supported by detekt. | COMMENT |