Rephrase rule description (#4686)

"Can't" sounds too hard. The Swift compiler allows multiple enum cases with the same name. It's rather a recommendation.
This commit is contained in:
Danny Mösch 2023-01-12 18:06:04 +01:00 committed by GitHub
parent 693e504258
commit 78c9ad6f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ struct DuplicateEnumCasesRule: ConfigurationProviderRule, SwiftSyntaxRule {
static let description = RuleDescription(
identifier: "duplicate_enum_cases",
name: "Duplicate Enum Cases",
description: "Enum can't contain multiple cases with the same name",
description: "Enum shouldn't contain multiple cases with the same name",
kind: .lint,
nonTriggeringExamples: [
Example("""