From aa5b07a6a2686d7fc100ca8f1de9afcff2c67add Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 29 Sep 2024 06:36:18 +1000 Subject: Backend: Change the detekt rule to be more generalised (#2600) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'detekt/src/main/kotlin/grammar/GrammarRuleSetProvider.kt') 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), + ), + ) } } -- cgit