https://kotlinlang.org logo
#detekt
Title
# detekt
s

Suraj Bokey

09/13/2019, 10:03 AM
Does anyone tries to change the indentation to 2. I have tried in config file but looks like detekt is not considering anything from “Formatting Block”
Copy code
formatting:
  active: true
  android: false
  autoCorrect: true
  ImportOrdering:
    active: false
    autoCorrect: true
  Indentation:
    active: true
    autoCorrect: true
    indentSize: 2
    continuationIndentSize: 2
a

Artur Bosch

09/16/2019, 8:15 AM
What exactly do you mean by "Formatting blocks"? The indentation rule is based on KtLint's one. Please veify this behavior with KtLint and report to their issue tracker https://github.com/pinterest/ktlint/issues
3 Views