I have this snippet ``` .assertValueAt(2) { ...
# codingconventions
r
I have this snippet
Copy code
.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
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
Exactly, that’s my concern with this rule