Skip to content

Commit

Permalink
Prepare Detekt 1.19.0 (#4338)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Nov 29, 2021
1 parent 26fd459 commit a42a63d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Versions {

const val DETEKT: String = "1.19.0-RC2"
const val DETEKT: String = "1.19.0"
const val SNAPSHOT_NAME: String = "main"
const val JVM_TARGET: String = "1.8"

Expand Down
5 changes: 2 additions & 3 deletions build-logic/src/main/kotlin/releasing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ tasks {

register<UpdateVersionInFileTask>("applySelfAnalysisVersion") {
fileToUpdate.set(file("${rootProject.rootDir}/gradle/libs.versions.toml"))
linePartToFind.set("detekt-gradle = \"io.gitlab.arturbosch.detekt:detekt-gradle-plugin")
linePartToFind.set("detekt = { id = \"io.gitlab.arturbosch.detekt\"")
lineTransformation.set(
"detekt-gradle = \"io.gitlab.arturbosch.detekt:" +
"detekt-gradle-plugin:${Versions.DETEKT}\""
"detekt = { id = \"io.gitlab.arturbosch.detekt\", version = \"${Versions.DETEKT}\" }"
)
}
}
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ description: "Meet detekt, a static code analysis tool for Kotlin."
url: https://detekt.github.io
baseurl: /detekt

detekt_version: 1.19.0-RC2
detekt_version: 1.19.0
31 changes: 27 additions & 4 deletions docs/pages/changelog 1.x.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,30 @@ permalink: changelog.html
toc: true
---

#### 1.19.0-RC1 - 2021-10-31
#### 1.19.0 - 2021-11-29

Please welcome the next upcoming stable release of Detekt: `1.18.0` 🎉
This release is coming with a lot of new features, new rules, evolution in the API and stability improvements.

Specifically, we've shipped some features that will allow you to better adapt detekt to run on codebases
that are using JetPack compose with features such as `ignoreAnnotated` and `ignoreFunction`.

As always, we want to take the opportunity to thank our contributors for testing, bug reporting and helping
us release this new version of Detekt. You're more than welcome to join our community on the [#detekt](https://kotlinlang.slack.com/archives/C88E12QH4) channel on KotlinLang's Slack (you can [get an invite here](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up)).

##### Notable Changes

- We now offer an `ignoreAnnotated` configuration key that you can use on all your rules to suppress findings if inside an annotated block (e.g. `@Composable`) - [#4102](https://github.com/detekt/detekt/pull/4102) and [#4241](https://github.com/detekt/detekt/pull/4241)
- Similarly, we now offer also an `ignoreFunction` configuration key that you can use to suppress findings if inside a function with a given name - [#4148](https://github.com/detekt/detekt/pull/4148)
- Report configuration is changing in the Gradle plugin. The `reports` extension on the `detekt` extension has been
deprecated. See the Migration section below for steps to migrate to the new recommended configuration - [#3687](https://github.com/detekt/detekt/pull/3687)
- The `ExplicitCollectionElementAccessMethod` rule is now a type-resolution only rule - [#4201](https://github.com/detekt/detekt/pull/4201)
- The `InvalidPackageDeclaration` rule has been split to create the `MissingPackageDeclaration` rule - [#4149](https://github.com/detekt/detekt/pull/4149)
- The `ForbiddenComment` rule now offers a `customMessage` configuration key - [#4126](https://github.com/detekt/detekt/pull/4126)
- We bumped ktlint and updated the default enabled rules to mirror what ktlint is doing - [#4179](https://github.com/detekt/detekt/pull/4179)
- Added a new LambdaParameterNaming rule, to enfornce a naming convention of paramter inside lambdas - [#4147](https://github.com/detekt/detekt/pull/4147)
- Added a new InjectDispatcher rule, to check if dispatchers are injectable - [#4222](https://github.com/detekt/detekt/pull/4222)
- Added a new ConsoleReport format - [#4027](https://github.com/detekt/detekt/pull/4027)
- Added a new `LambdaParameterNaming` rule, to enforce a naming convention of parameter inside lambdas - [#4147](https://github.com/detekt/detekt/pull/4147)
- Added a new `InjectDispatcher` rule, to check if dispatchers are injectable - [#4222](https://github.com/detekt/detekt/pull/4222)
- Added a new `ConsoleReport` format - [#4027](https://github.com/detekt/detekt/pull/4027)
- Gradle: We added the `--auto-correct` cmdline option to gradle tasks - [#4202](https://github.com/detekt/detekt/pull/4202)
- Gradle: We removed the `afterEvaluate` wrapper from the Android and KMM plugin - [#4159](https://github.com/detekt/detekt/pull/4159) and [#4271](https://github.com/detekt/detekt/pull/4271)
- We now test against Java 17 and stopped testing against Java 16 - [#4136](https://github.com/detekt/detekt/pull/4136)
Expand Down Expand Up @@ -80,6 +90,12 @@ tasks.detektMain {

##### Changelog

- trim values when parsing the baseline - [#4335](https://github.com/detekt/detekt/pull/4335)
- Fix #4332 by widening the scope to all JDKs - [#4333](https://github.com/detekt/detekt/pull/4333)
- Bugfix provided by #4225 needs wider scope - [#4332](https://github.com/detekt/detekt/issues/4332)
- Avoid false positives in MemberNameEqualsClassName - [#4329](https://github.com/detekt/detekt/pull/4329)
- Add two new config steps for Compose - [#4322](https://github.com/detekt/detekt/pull/4322)
- Set DetektJvm task source with SourceDirectorySet instead of file list - [#4151](https://github.com/detekt/detekt/pull/4151)
- Add documentation about how to configure Baseline task with type resolution - [#4285](https://github.com/detekt/detekt/pull/4285)
- Remove kotlin-gradle-plugin-api from runtime classpath - [#4275](https://github.com/detekt/detekt/pull/4275)
- Use appropriate annotations on source properties in Gradle tasks - [#4264](https://github.com/detekt/detekt/pull/4264)
Expand Down Expand Up @@ -125,6 +141,9 @@ tasks.detektMain {

##### Dependency Updates

- Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-core to v1.5.2 - [#4302](https://github.com/detekt/detekt/pull/4302)
- Update dependency io.mockk:mockk to v1.12.1 - [#4297](https://github.com/detekt/detekt/pull/4297)
- Update dependency com.android.tools.build:gradle to v4.2.2 - [#4296](https://github.com/detekt/detekt/pull/4296)
- Gradle Publishing Plugin 0.17.0 - [#4270](https://github.com/detekt/detekt/pull/4270)
- Shadow 7.1.0 - [#4269](https://github.com/detekt/detekt/pull/4269)
- Dokka 1.5.31 - [#4268](https://github.com/detekt/detekt/pull/4268)
Expand All @@ -137,6 +156,10 @@ tasks.detektMain {

##### Housekeeping & Refactorings

- Simplify YamlConfig - [#4316](https://github.com/detekt/detekt/pull/4316)
- Move tests to the correct module - [#4314](https://github.com/detekt/detekt/pull/4314)
- Don't hide null issues - [#4313](https://github.com/detekt/detekt/pull/4313)
- Add functional test for type resolution for JVM - [#4307](https://github.com/detekt/detekt/pull/4307)
- Minor typo fix and code refactoring - [#4284](https://github.com/detekt/detekt/pull/4284)
- Improve Tests of UnnecesaryLet - [#4282](https://github.com/detekt/detekt/pull/4282)
- Fix typo in UnnecessaryLet - [#4281](https://github.com/detekt/detekt/pull/4281)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jcommander = "com.beust:jcommander:1.81"

[plugins]
binaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.8.0" }
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.18.1" }
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.19.0" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
gradleVersions = { id = "com.github.ben-manes.versions", version = "0.39.0" }
pluginPublishing = { id = "com.gradle.plugin-publish", version = "0.18.0" }
Expand Down

0 comments on commit a42a63d

Please sign in to comment.