Ktlint: Allow to replace existing rules?

Created on 30 Mar 2018  路  2Comments  路  Source: pinterest/ktlint

I've read #21, but still I don't see why some rules (e.g. indent size) can be configured, and other rules cannot.
e.g. there is no way to use 2 lines to separate imports from class definition. Standard rules are cool, but a little bit more configuration options would be great.

Most helpful comment

Yes! for example, the rationale behind

No newline before &&

is unclear. We can tune the continuation intent size, why not also be able to tune the position of && and ||?

All 2 comments

Yes! for example, the rationale behind

No newline before &&

is unclear. We can tune the continuation intent size, why not also be able to tune the position of && and ||?

Closed, since it seems to be resolved partially by this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xenomachina picture xenomachina  路  5Comments

pkubowicz picture pkubowicz  路  4Comments

vanniktech picture vanniktech  路  5Comments

DanteAndroid picture DanteAndroid  路  3Comments

tonilopezmr picture tonilopezmr  路  4Comments