@@ -18,11 +18,11 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
18
18
}
19
19
""" ,
20
20
findings: [
21
- FindingSpec ( " 1️⃣ " , message: " rename the struct 'a' using UpperCamelCase; for example, 'A' " ) ,
22
- FindingSpec ( " 2️⃣ " , message: " rename the class 'klassName' using UpperCamelCase; for example, 'KlassName' " ) ,
23
- FindingSpec ( " 3️⃣ " , message: " rename the struct 'subType' using UpperCamelCase; for example, 'SubType' " ) ,
24
- FindingSpec ( " 4️⃣ " , message: " rename the protocol 'myProtocol' using UpperCamelCase; for example, 'MyProtocol' " ) ,
25
- FindingSpec ( " 5️⃣ " , message: " rename the struct 'innerType' using UpperCamelCase; for example, 'InnerType' " ) ,
21
+ FindingSpec ( " 1️⃣ " , message: " rename the struct 'a' using UpperCamelCase; for example, 'A' " , severity : . convention ) ,
22
+ FindingSpec ( " 2️⃣ " , message: " rename the class 'klassName' using UpperCamelCase; for example, 'KlassName' " , severity : . convention ) ,
23
+ FindingSpec ( " 3️⃣ " , message: " rename the struct 'subType' using UpperCamelCase; for example, 'SubType' " , severity : . convention ) ,
24
+ FindingSpec ( " 4️⃣ " , message: " rename the protocol 'myProtocol' using UpperCamelCase; for example, 'MyProtocol' " , severity : . convention ) ,
25
+ FindingSpec ( " 5️⃣ " , message: " rename the struct 'innerType' using UpperCamelCase; for example, 'InnerType' " , severity : . convention ) ,
26
26
]
27
27
)
28
28
}
@@ -37,8 +37,8 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
37
37
distributed actor DistGreeter {}
38
38
""" ,
39
39
findings: [
40
- FindingSpec ( " 1️⃣ " , message: " rename the actor 'myActor' using UpperCamelCase; for example, 'MyActor' " ) ,
41
- FindingSpec ( " 2️⃣ " , message: " rename the actor 'greeter' using UpperCamelCase; for example, 'Greeter' " ) ,
40
+ FindingSpec ( " 1️⃣ " , message: " rename the actor 'myActor' using UpperCamelCase; for example, 'MyActor' " , severity : . convention ) ,
41
+ FindingSpec ( " 2️⃣ " , message: " rename the actor 'greeter' using UpperCamelCase; for example, 'Greeter' " , severity : . convention ) ,
42
42
]
43
43
)
44
44
}
@@ -64,9 +64,9 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
64
64
}
65
65
""" ,
66
66
findings: [
67
- FindingSpec ( " 1️⃣ " , message: " rename the associated type 'kind' using UpperCamelCase; for example, 'Kind' " ) ,
68
- FindingSpec ( " 2️⃣ " , message: " rename the type alias 'x' using UpperCamelCase; for example, 'X' " ) ,
69
- FindingSpec ( " 3️⃣ " , message: " rename the type alias 'data' using UpperCamelCase; for example, 'Data' " ) ,
67
+ FindingSpec ( " 1️⃣ " , message: " rename the associated type 'kind' using UpperCamelCase; for example, 'Kind' " , severity : . convention ) ,
68
+ FindingSpec ( " 2️⃣ " , message: " rename the type alias 'x' using UpperCamelCase; for example, 'X' " , severity : . convention ) ,
69
+ FindingSpec ( " 3️⃣ " , message: " rename the type alias 'data' using UpperCamelCase; for example, 'Data' " , severity : . convention ) ,
70
70
]
71
71
)
72
72
}
@@ -108,14 +108,14 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
108
108
distributed actor __InternalGreeter {}
109
109
""" ,
110
110
findings: [
111
- FindingSpec ( " 1️⃣ " , message: " rename the protocol '_p' using UpperCamelCase; for example, '_P' " ) ,
112
- FindingSpec ( " 2️⃣ " , message: " rename the associated type '_value' using UpperCamelCase; for example, '_Value' " ) ,
113
- FindingSpec ( " 3️⃣ " , message: " rename the struct '_data' using UpperCamelCase; for example, '_Data' " ) ,
114
- FindingSpec ( " 4️⃣ " , message: " rename the type alias '_x' using UpperCamelCase; for example, '_X' " ) ,
115
- FindingSpec ( " 5️⃣ " , message: " rename the actor '_internalActor' using UpperCamelCase; for example, '_InternalActor' " ) ,
116
- FindingSpec ( " 6️⃣ " , message: " rename the enum '__e' using UpperCamelCase; for example, '__E' " ) ,
117
- FindingSpec ( " 7️⃣ " , message: " rename the class '_myClass' using UpperCamelCase; for example, '_MyClass' " ) ,
118
- FindingSpec ( " 8️⃣ " , message: " rename the actor '__greeter' using UpperCamelCase; for example, '__Greeter' " ) ,
111
+ FindingSpec ( " 1️⃣ " , message: " rename the protocol '_p' using UpperCamelCase; for example, '_P' " , severity : . convention ) ,
112
+ FindingSpec ( " 2️⃣ " , message: " rename the associated type '_value' using UpperCamelCase; for example, '_Value' " , severity : . convention ) ,
113
+ FindingSpec ( " 3️⃣ " , message: " rename the struct '_data' using UpperCamelCase; for example, '_Data' " , severity : . convention ) ,
114
+ FindingSpec ( " 4️⃣ " , message: " rename the type alias '_x' using UpperCamelCase; for example, '_X' " , severity : . convention ) ,
115
+ FindingSpec ( " 5️⃣ " , message: " rename the actor '_internalActor' using UpperCamelCase; for example, '_InternalActor' " , severity : . convention ) ,
116
+ FindingSpec ( " 6️⃣ " , message: " rename the enum '__e' using UpperCamelCase; for example, '__E' " , severity : . convention ) ,
117
+ FindingSpec ( " 7️⃣ " , message: " rename the class '_myClass' using UpperCamelCase; for example, '_MyClass' " , severity : . convention ) ,
118
+ FindingSpec ( " 8️⃣ " , message: " rename the actor '__greeter' using UpperCamelCase; for example, '__Greeter' " , severity : . convention ) ,
119
119
]
120
120
)
121
121
}
0 commit comments