You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the build on JDK 21 and fix what detekt then found
gradle/gradle-daemon-jvm.properties pinned the daemon to JDK 25, so every build
ran there whatever JAVA_HOME said. detekt 1.23 embeds a Kotlin compiler that
cannot parse a 25.x version string and died with 'IllegalArgumentException:
25.0.3' before analysing anything, which is what failed CI.
Dropping the generated toolchainUrl entries with it: they pointed at JDK 25
downloads and would be wrong for a 21 request. Gradle now uses the locally
installed 21 that dev machines and the runner already have.
With detekt actually running, three real findings surfaced and one config bug:
- BADGE_ALPHA and BORDER_ALPHA in UrgencyStyle.kt were dead
- MagicNumber listed excludes, which replaces detekt's defaults instead of
adding to them, so the test sources lost their exemption and 55 deliberate
literals in tests were flagged
- parseIsoish trips ReturnCount at 7 returns, all of them guard clauses, which
is the house style; guards are no longer counted
Also renames UrgencyBadge.kt to UrgencyStyle.kt. It holds no UrgencyBadge, which
ktlint's filename rule caught and which had been failing since the file was
written.
0 commit comments