package io.gitlab.arturbosch.detekt.formatting.wrappers

import com.pinterest.ktlint.ruleset.standard.rules.NoBlankLinesInChainedMethodCallsRule
import io.gitlab.arturbosch.detekt.api.ActiveByDefault
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.internal.AutoCorrectable
import io.gitlab.arturbosch.detekt.formatting.FormattingRule

/**
 * See [ktlint docs](https://pinterest.github.io/ktlint/<ktlintVersion/>/rules/standard/#no-blank-lines-in-chained-method-calls) for
 * documentation.
 */
@ActiveByDefault(since = "1.22.0")
@AutoCorrectable(since = "1.22.0")
class NoBlankLinesInChainedMethodCalls(config: Config) : FormattingRule(
    config,
    "Detects blank lines in chained method rules."
) {

    override val wrapping = NoBlankLinesInChainedMethodCallsRule()
}
