aboutsummaryrefslogtreecommitdiff
path: root/detekt/src/main/kotlin/formatting/FormattingRuleSetProvider.kt
blob: a0a969bcf503576c6059be401d6e5014e990666f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package at.hannibal2.skyhanni.detektrules.formatting

import com.google.auto.service.AutoService
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider

@AutoService(RuleSetProvider::class)
class FormattingRuleSetProvider : RuleSetProvider {
    override val ruleSetId: String = "FormattingRules"

    override fun instance(config: Config): RuleSet {
        return RuleSet(ruleSetId, listOf(
            CustomCommentSpacing(config)
        ))
    }
}