diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index adef1cec1..91273fa53 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -14,7 +14,7 @@ repositories { object Plugins { const val KOTLIN = "1.3.72" - const val DETEKT = "1.8.0" + const val DETEKT = "1.9.0" const val GITHUB_RELEASE = "2.2.12" const val ARTIFACTORY = "4.15.1" const val BINTRAY = "1.8.4" diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 1130036ec..ff858fb08 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -1,6 +1,6 @@ object Versions { - const val DETEKT: String = "1.8.0" + const val DETEKT: String = "1.9.0" const val JVM_TARGET: String = "1.8" const val ASSERTJ: String = "3.15.0" const val SPEK: String = "2.0.10" diff --git a/buildSrc/src/main/kotlin/releasing.gradle.kts b/buildSrc/src/main/kotlin/releasing.gradle.kts index 9796e7026..a66c42ca4 100644 --- a/buildSrc/src/main/kotlin/releasing.gradle.kts +++ b/buildSrc/src/main/kotlin/releasing.gradle.kts @@ -7,7 +7,7 @@ plugins { githubRelease { token(project.findProperty("github.token") as? String ?: "") - owner.set("arturbosch") + owner.set("detekt") repo.set("detekt") overwrite.set(true) dryRun.set(false) diff --git a/docs/_config.yml b/docs/_config.yml index bcb00dceb..6a490e4ce 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -110,4 +110,4 @@ description: "Meet detekt, a static code analysis tool for Kotlin." url: http://github.com/detekt/detekt baseurl: / -detekt_version: 1.8.0 +detekt_version: 1.9.0 diff --git a/docs/pages/changelog 1.x.x.md b/docs/pages/changelog 1.x.x.md index dba339fae..e0948a561 100644 --- a/docs/pages/changelog 1.x.x.md +++ b/docs/pages/changelog 1.x.x.md @@ -6,6 +6,31 @@ permalink: changelog.html toc: true --- +#### 1.9.0 + +##### Changelog + +- Extra documentation added to pitfalls section - [#2675](https://github.com/detekt/detekt/pull/2675) +- Use configuration avoidance for withType usages - [#2672](https://github.com/detekt/detekt/pull/2672) +- GuardClause also matches if-with-body that contains a return - [#2671](https://github.com/detekt/detekt/pull/2671) +- Simplify patterns - [#2668](https://github.com/detekt/detekt/pull/2668) +- Include Kotlin multiplatform test folders to default exclude config - [#2667](https://github.com/detekt/detekt/pull/2667) +- Remove duplicate MandatoryBracesLoops rule tests - [#2665](https://github.com/detekt/detekt/pull/2665) +- Remove print statement in MandatoryBracesLoops - [#2664](https://github.com/detekt/detekt/pull/2664) +- Remove $ as a valid char in class and method names - [#2662](https://github.com/detekt/detekt/pull/2662) +- Build detekt executable before publishing it - #2654 - [#2659](https://github.com/detekt/detekt/pull/2659) +- Add style rule for mandatory braces in for loop bodies - [#2658](https://github.com/detekt/detekt/pull/2658) +- Asset in release 1.8.0 is not up-to-date - [#2654](https://github.com/detekt/detekt/issues/2654) +- Rule: Mandatory braces for single-line for loop bodies - [#2652](https://github.com/detekt/detekt/issues/2652) +- Use task configuration avoidance for detekt plugin - [#2651](https://github.com/detekt/detekt/pull/2651) +- Add detekt GitHub action to readme - [#2650](https://github.com/detekt/detekt/pull/2650) +- Don't report unused private properties in expect class - [#2646](https://github.com/detekt/detekt/pull/2646) +- UnusedPrivateMember: don't report parameters in expect/actual functions - [#2643](https://github.com/detekt/detekt/pull/2643) +- UnusedPrivateMembers on expect class - [#2636](https://github.com/detekt/detekt/issues/2636) +- Include Kotlin multiplatform test folders to default exclude configuration - [#2608](https://github.com/detekt/detekt/issues/2608) + +See all issues at: [1.9.0](https://github.com/detekt/detekt/milestone/65) + #### 1.8.0 ##### Notable Changes diff --git a/scripts/github-milestone-report.groovy b/scripts/github-milestone-report.groovy index e2816761a..95107c3c2 100644 --- a/scripts/github-milestone-report.groovy +++ b/scripts/github-milestone-report.groovy @@ -14,7 +14,7 @@ final class Report { if (args.size() > 3) throw new IllegalArgumentException("Usage: [userId] [repositoryId] [milestoneId]") -def user = args.size() > 0 ? args[0] : "arturbosch" +def user = args.size() > 0 ? args[0] : "detekt" def repo = args.size() > 1 ? args[1] : "detekt" def github = GitHub.connectAnonymously()