aboutsummaryrefslogtreecommitdiff
path: root/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt
blob: 8001fe42b5b249f094e89834ae7fcedea5ab73b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package at.hannibal2.skyhanni.detektrules.grammar

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 GrammarRuleSetProvider : RuleSetProvider {
    override val ruleSetId: String = "GrammarRules"

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