Kotlin / Kotlin/ktfmt

Line break in chevrons when it can be in a dot

Open
#207 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Kotlin
Stars
1.3k
Forks
116
Avg merge
4d 10h
Merged PRs (30d)
15

Description

```
class CharactersTest {

@Test
fun characters_test() {
launchFragmentWithNavigation {
with(binding) {
recyclerViewCharacters.adapter.shouldBeTypeOf<
ListAdapter>()
}
}
}
}
```

should be

```
class CharactersTest {

@Test
fun characters_test() {
launchFragmentWithNavigation {
with(binding) {
recyclerViewCharacters
.adapter
.shouldBeTypeOf>()
}
}
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the formatting difference using the Kotlin snippets in the issue, then locate the formatter logic and tests for chained calls and line breaks around dots. Add regression coverage for this case and verify that the formatted output matches the expected example.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.