https://kotlinlang.org logo
Title
r

ralf

03/06/2018, 2:39 AM
I have this snippet
.assertValueAt(2) {
                it is ImageChangeEvent.ImageUpdated
                        && it.position == 0
                        && it.changedFields.contains(CollectImage.IMAGE_MODE)
                        && it.image.imageMode == newImageMode
            }
The Kotlin Lint plugin complaints about this with
Line must not begin with "&&"
. Is this actually true? I couldn’t find anything in the coding conventions
c

Czar

03/06/2018, 2:00 PM
I've seen this with Java before (don't remember which plugin or linter), and I completely disagree, in my humble opinion starting line with the connecting Boolean operator is much more readable than leaving the operator on the previous line.
7
r

ralf

03/06/2018, 3:28 PM
Exactly, that’s my concern with this rule