Add violation markers

This commit is contained in:
Danny Mösch 2023-05-06 22:18:56 +02:00
parent 5e15039554
commit bc18ff14e3
1 changed files with 10 additions and 10 deletions

View File

@ -20,16 +20,16 @@ struct ImplicitlyUnwrappedOptionalRule: SwiftSyntaxRule, ConfigurationProviderRu
Example("let int: Int? = nil")
],
triggeringExamples: [
Example("let label: UILabel!"),
Example("let IBOutlet: UILabel!"),
Example("let labels: [UILabel!]"),
Example("var ints: [Int!] = [42, nil, 42]"),
Example("let label: IBOutlet!"),
Example("let int: Int! = 42"),
Example("let int: Int! = nil"),
Example("var int: Int! = 42"),
Example("let collection: AnyCollection<Int!>"),
Example("func foo(int: Int!) {}")
Example("let label: UILabel!"),
Example("let IBOutlet: UILabel!"),
Example("let labels: [UILabel!]"),
Example("var ints: [Int!] = [42, nil, 42]"),
Example("let label: IBOutlet!"),
Example("let int: Int! = 42"),
Example("let int: Int! = nil"),
Example("var int: Int! = 42"),
Example("let collection: AnyCollection<Int!>"),
Example("func foo(int: Int!) {}")
]
)