AI Slop Code Risk Monitor

detekt/detekt

SlopCodeMonitor badge for detekt/detekt Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Static code analysis for Kotlin

1.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

1.9
Adjusted Signal
1.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
7.1K
Stars
Kotlin
Language
141.9K
Lines of Code
1.3K
Files
74
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 0.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 3 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.0/100 · LOW

Are imports declared and package/API names verified? 37 finding(s).

Agent Over-Engineering Ratio 5.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 34 finding(s).

PR Review Velocity Impact 10.6/100 · LOW

Which changes need focused human review? 74 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 7HIGH 36MEDIUM 0LOW 31

Directory Score Breakdown

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.

Pattern Findings

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.

Cross-File Repetition34 hits · 170 pts
SeverityFileLineSnippetContext
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package cases /** * a comment */ @suppress("unused") class defaultSTRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package cases /** * a comment */ @suppress("unused") class defaultSTRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package cases /** * a comment */ @suppress("unused") class defaultSTRING
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package empty @suppress("unused") enum class emptyenumSTRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package empty @suppress("unused") enum class emptyenumSTRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package empty @suppress("unused") enum class emptyenumSTRING
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package empty @suppress("unused") interface emptyinterfaceSTRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package empty @suppress("unused") interface emptyinterfaceSTRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package empty @suppress("unused") interface emptyinterfaceSTRING
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 }STRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 }STRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package fields @suppress("unused") class classwithfields { private var x = 0 val y = 0 }STRING
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { //STRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { //STRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package comments @suppress("unused") class commentsclass { /** * doc comment * * @param args */ fun x(args: string) { //STRING
HIGH…rc/test/kotlin/dev/detekt/report/complexity/package.kt0package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2STRING
HIGH…rc/test/kotlin/dev/detekt/report/statistics/package.kt0package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2STRING
HIGH…c/test/kotlin/dev/detekt/metrics/processors/package.kt0package cases import org.jetbrains.kotlin.utils.sure @suppress("unused") class complexclass {// mccabe: 44, lloc: 20 + 2STRING
HIGH…t/kotlin/dev/detekt/rules/naming/FunctionNamingSpec.kt0data 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.kt0data 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.kt0data class d(val i: int, val j: int) fun dostuff() { val (_, holy_grail) = d(5, 4) }STRING
HIGH…/rules/style/ExplicitItLambdaMultipleParametersSpec.kt0fun f() { val digits = 1234.let { it -> listof(it) println(it) } }STRING
HIGH…v/detekt/rules/style/MultilineLambdaItParameterSpec.kt0fun f() { val digits = 1234.let { it -> listof(it) println(it) } }STRING
HIGH…ev/detekt/rules/style/ExplicitItLambdaParameterSpec.kt0fun f() { val digits = 1234.let { it -> listof(it) println(it) } }STRING
HIGH…lin/dev/detekt/rules/ktlintwrapper/KdocWrappingSpec.kt0/* 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.kt0/* some comment 1 */ val foo1 = "foo1" /* some comment 2 */val foo2 = "foo2" /* some comment 3 */ fun foo3() = "foo3" /*STRING
HIGH…kt/rules/ktlintwrapper/NoSingleLineBlockCommentSpec.kt0/* 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.kt0dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } }STRING
HIGH…onalTest/kotlin/dev/detekt/gradle/DetektAndroidSpec.kt0dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } }STRING
HIGH…st/kotlin/dev/detekt/gradle/DetektMultiplatformSpec.kt0dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } }STRING
HIGH…est/kotlin/dev/detekt/gradle/report/ReportMergeSpec.kt0dependencyresolutionmanagement { repositories { mavenlocal() mavencentral() google() } }STRING
HIGH…Test/kotlin/dev/detekt/gradle/DetektReportMergeSpec.kt0dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} }STRING
HIGH…/kotlin/dev/detekt/gradle/DetektTaskMultiModuleSpec.kt0dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} }STRING
HIGH…est/kotlin/dev/detekt/gradle/report/ReportMergeSpec.kt0dependencyresolutionmanagement { ${builder.gradlerepositories.reindent(1)} }STRING
Fake / Example Data30 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt282 // Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt282 // Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt283 /* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt283 /* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt286 * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt286 * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut laCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt24 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt24 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt31 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt31 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt156 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt156 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt165 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt165 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt289 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt289 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt292 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt292 val loremIpsumField = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt71 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt71 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt202 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt202 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt307 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW…est/kotlin/dev/detekt/rules/style/MaxLineLengthSpec.kt307 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCODE
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt88 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor inCODE
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt88 fun getLoremIpsum() = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor inCODE
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt92 * This is a constant for "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt92 * This is a constant for "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tCOMMENT
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt94 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor inCODE
LOW⚡…est/kotlin/dev/detekt/rules/ktlintwrapper/TestFiles.kt94 val LOREM_IPSUM = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor inCODE
Hallucination Indicators7 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL…tlin/dev/detekt/rules/style/ForbiddenMethodCallSpec.kt359 val methodName = "dev.detekt.rules.style.TestClass.Companion.staticMethod()"STRING
CRITICAL…tlin/dev/detekt/rules/style/ForbiddenMethodCallSpec.kt382 val methodName = "dev.detekt.rules.style.TestClass.Companion.staticMethod()"STRING
CRITICAL…eptions/ThrowingExceptionsWithoutMessageOrCauseSpec.kt42 org.assertj.core.api.Assertions.assertThatIllegalArgumentException().isThrownBy { println() }CODE
CRITICAL…n/dev/detekt/rules/complexity/LongParameterListSpec.kt185 org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo("LongCtor")STRING
CRITICAL…n/dev/detekt/rules/complexity/LongParameterListSpec.kt202 org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo($$"LongCtor$constructor")STRING
CRITICAL…n/dev/detekt/rules/complexity/LongParameterListSpec.kt219 org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo($$"LongCtor$fun a")STRING
CRITICAL…n/dev/detekt/rules/complexity/LongParameterListSpec.kt234 org.assertj.core.api.Assertions.assertThat(result[0].entity.signature).isEqualTo("fun a")STRING
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH.github/CONTRIBUTING.md19## A note on AI-generated contributionsCOMMENT
HIGH.github/CONTRIBUTING.md22- However, we do have a special policy for contributions that appear to be **entirely generated by AI**:CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWgradle/libs.versions.toml21# This represents the oldest AGP 9 version that is supported by detekt.COMMENT