@@ -17,11 +17,11 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
1717 }
1818 """ ,
1919 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 ) ,
2525 ]
2626 )
2727 }
@@ -36,8 +36,8 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
3636 distributed actor DistGreeter {}
3737 """ ,
3838 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 ) ,
4141 ]
4242 )
4343 }
@@ -63,9 +63,9 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
6363 }
6464 """ ,
6565 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 ) ,
6969 ]
7070 )
7171 }
@@ -107,17 +107,18 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
107107 distributed actor __InternalGreeter {}
108108 """ ,
109109 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 ) ,
114114 FindingSpec (
115115 " 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
117118 ) ,
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 ) ,
121122 ]
122123 )
123124 }
0 commit comments