aboutsummaryrefslogtreecommitdiff
path: root/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt
blob: 957b20147ceeb1bb1fd3bf006afc7d5d69bd7b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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(
            AvoidColour(config)
        ))
    }
}