@@ -18,11 +18,11 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
1818 }
1919 """ ,
2020 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 ) ,
2626 ]
2727 )
2828 }
@@ -37,8 +37,8 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
3737 distributed actor DistGreeter {}
3838 """ ,
3939 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 ) ,
4242 ]
4343 )
4444 }
@@ -64,9 +64,9 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
6464 }
6565 """ ,
6666 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 ) ,
7070 ]
7171 )
7272 }
@@ -108,14 +108,14 @@ final class TypeNamesShouldBeCapitalizedTests: LintOrFormatRuleTestCase {
108108 distributed actor __InternalGreeter {}
109109 """ ,
110110 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 ) ,
119119 ]
120120 )
121121 }
0 commit comments