diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-09-29 06:36:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-28 22:36:18 +0200 |
commit | aa5b07a6a2686d7fc100ca8f1de9afcff2c67add (patch) | |
tree | 389a64a31e149124436d4ea006a4afc79c9a226c /detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt | |
parent | f332c375c5865e4266b0e831c7b6b54ae5f701c4 (diff) | |
download | skyhanni-aa5b07a6a2686d7fc100ca8f1de9afcff2c67add.tar.gz skyhanni-aa5b07a6a2686d7fc100ca8f1de9afcff2c67add.tar.bz2 skyhanni-aa5b07a6a2686d7fc100ca8f1de9afcff2c67add.zip |
Backend: Change the detekt rule to be more generalised (#2600)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt')
-rw-r--r-- | detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt b/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt index 957b20147..8001fe42b 100644 --- a/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt +++ b/detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt @@ -10,8 +10,11 @@ class GrammarRuleSetProvider : RuleSetProvider { override val ruleSetId: String = "GrammarRules" override fun instance(config: Config): RuleSet { - return RuleSet(ruleSetId, listOf( - AvoidColour(config) - )) + return RuleSet( + ruleSetId, + listOf( + AvoidBritishSpelling(config), + ), + ) } } |