aboutsummaryrefslogtreecommitdiff
path: root/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt
diff options
context:
space:
mode:
Diffstat (limited to 'detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt')
-rw-r--r--detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt b/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt
new file mode 100644
index 000000000..957b20147
--- /dev/null
+++ b/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt
@@ -0,0 +1,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)
+ ))
+ }
+}