diff --git a/src/main/kotlin/com/github/mydogtom/ktlint/rules/CustomIndentationRule.kt b/src/main/kotlin/com/github/mydogtom/ktlint/rules/CustomIndentationRule.kt index f8dbc3b..043a48f 100644 --- a/src/main/kotlin/com/github/mydogtom/ktlint/rules/CustomIndentationRule.kt +++ b/src/main/kotlin/com/github/mydogtom/ktlint/rules/CustomIndentationRule.kt @@ -70,7 +70,7 @@ class CustomIndentationRule : Rule("custom-indent") { " indentation (${line.length}) (" + "parameters should be vertically aligned)", true) - if (autoCorrect) replaceWithExpectedIndent(node, firstParameterColumn.value - 1) + replaceWithExpectedIndent(node, firstParameterColumn.value - 1) } } else if (line.isNotEmpty() && (line.length - previousIndent) % expectedIndentSize != 0) { @@ -78,7 +78,7 @@ class CustomIndentationRule : Rule("custom-indent") { " indentation (${line.length - previousIndent}) " + "(it should be $expectedIndentSize)", true) - if (autoCorrect) replaceWithExpectedIndent(node, previousIndent + expectedIndentSize) + replaceWithExpectedIndent(node, previousIndent + expectedIndentSize) } offset += line.length + 1 }