-
## Expected Behavior
There should always be a space after `fun` word:
https://kotlinlang.org/docs/coding-conventions.html#names-for-test-methods
Otherwise, ktlint should fail, like it fails wit…
-
## Expected Behavior
Given `.editorconfig`:
```
ktlint_standard_function-expression-body = disabled
```
And this source file, `hello.kt`
```kotlin
fun hello(): String {
return "hello"
}
…
-
**Describe the bug**
Currently, ktlint is not catching the comment block bad format.
```kt
/**
*
*
* */
```
**Expected behavior**
Ktlint should catch this bad format.
Correct for…
-
## Expected Behavior
I'd like to format my multiline expression functions like so:
```kotlin
fun foo() =
"bar"
fun foo(
bar: BarBarBarBarBarBarBarBarBarBarBarBar,
baz: BarBarB…
-
The plugin doesn't appear to be compatible with project isolation (https://docs.gradle.org/current/userguide/isolated_projects.html) :
The problem is with this bit of code here:
https://github.com/…
-
## Expected Behavior
All following formattings should be accepted:
```
fun test(block: context(Int) () -> Unit = {}) {}
fun test(
block: context(Int) () -> Unit = {},
)…
-
## Expected Behavior
ktlint
- does not report a name rule violation
- any formatting that is performed leaves the code in a compilable state
## Observed Behavior
- ktlint reports `Fun…
-
## Expected Behavior
Detekt and ktlint should push for the same indentation.
## Observed Behavior
In the attached example detekt wants 12, while ktlint wants 16.
So one of these li…
kts2 updated
2 months ago
-
## Expected Behavior of the rule
Update to ktlint to version `0.49.0` and add support for new features:
- Ktlint code styles
-
Hey folks,
I noticed that the bundled ktlint version is quite a bit behind the latest (0.49.1 vs [1.3.0](https://github.com/pinterest/ktlint/releases/tag/1.3.0)) which causes quite a bit of a linti…