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