WRONG_INDENTATION: why are extendedIndentOfParameters, extendedIndentAfterOperators, and extendedIndentBeforeDot set to false? #1346
-
As of DiKTat 1.1.1, the default configuration for - name: WRONG_INDENTATION
enabled: true
configuration:
newlineAtEnd: true
extendedIndentOfParameters: false
alignedParameters: true
extendedIndentAfterOperators: false
extendedIndentBeforeDot: false
indentationSize: 4 i. e. all |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All these flags:
are in control of whether continuation indent should be enabled or not (in various contexts), while the modern Kotlin style guide doesn't mention any continuation indent at all. This paragraph (Differences between "Kotlin coding conventions" and "IntelliJ IDEA default code style") describes why the continuation indent is gone from the style guide:
What Kotlin style guide for Android prescribes is consistent with the above:
For more details, see this comment. |
Beta Was this translation helpful? Give feedback.
All these flags:
extendedIndentOfParameters
,extendedIndentAfterOperators
, andextendedIndentBeforeDot
are in control of whether continuation indent should be enabled or not (in various contexts), while the modern Kotlin style guide doesn't mention any continuation indent at all.
This paragraph (Differences between "Kotlin coding conventions" and "IntelliJ IDEA default code style") describes why the continuation indent is gone from the style guide: