Skip to content
This repository was archived by the owner on Oct 16, 2018. It is now read-only.
This repository was archived by the owner on Oct 16, 2018. It is now read-only.

Be concrete about && and || at the beginning or end of a line #62

@vRallev

Description

@vRallev

I think Java prefers

if (condition1
    && condition 2
    || condition3) {

    // do something
}

This style would make sense to me in Kotlin as well, but I couldn't find anything regarding to that in the IJ Kotlin style guide or Android style guide. Note that there has been some discussion going on in the ktlint project what prefers

if (condition1 &&
    condition2 ||
    condition3) {

    // do something
}

pinterest/ktlint#168

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions