-
The following code gets flagged:
```kotlin
val yearsAgo = dailyQueryWrapper.dailyPictureQueries.yearsAgo(
monthDates = localDates
.filter { it.atTime(it.yearsAgoReminderTime()) >= …
-
We configure a KtLint task like this:
```
tasks.register("ktlint", JavaExec::class.java) {
it.description = "Check Kotlin code style."
it.classpath(ktlintConfig)
it.mainClass.set("com.pinte…
-
Within new ktlint, these should be named `ktlint_disabled_rules`, however it seems that these are ignored by the plugin?
-
Given a multiline binary expression in an condition then wrap the right hand side of each binary expression to a new line:
```
if (foo || (bar && true) ||
false
) { ... }
while (foo || (bar…
-
With 0.20.0-beta-5, if you have an unparseable editor config like keys without values and trigger a manual ktlint formatting without the plugin being configured, you get three notifications. First a n…
-
Internal error is thrown by chain-method-continuation when formatting https://github.com/detekt/detekt/blob/e068151fb26352c1adca5b5b808c239b7774b69a/build-logic/src/main/kotlin/ConsumeGeneratedConfig.…
-
Resources in location `ktlint-cli/src/main/resources/config` and `ktlint-cli/src/main/resources/project-config` have to be removed. They are not used in the project anymore.
-
After ktlint went to 1.0.0 we can see new artifacts (https://github.com/pinterest/ktlint/releases/tag/1.0.0). So Kotlinter needs another minor bump to adjust to that i think :)
-
In unfortunate timing, ktlint-maven-plugin 2.0.0 was released just before ktlint's update from 0.50.0 to 1.0.0.
Hopefully 1.0.0 doesn't change too much? But ktlint-maven-plugin should be updated t…
-
Is there a way to disable ktlint validation for the certain paths of the project?