@@ -37,10 +37,12 @@ class LintPipeline: SyntaxVisitor {
37
37
}
38
38
39
39
override func visit( _ node: ActorDeclSyntax ) -> SyntaxVisitorContinueKind {
40
+ visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
40
41
visitIfEnabled ( TypeNamesShouldBeCapitalized . visit, for: node)
41
42
return . visitChildren
42
43
}
43
44
override func visitPost( _ node: ActorDeclSyntax ) {
45
+ onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
44
46
onVisitPost ( rule: TypeNamesShouldBeCapitalized . self, for: node)
45
47
}
46
48
@@ -76,7 +78,6 @@ class LintPipeline: SyntaxVisitor {
76
78
visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
77
79
visitIfEnabled ( AlwaysUseLowerCamelCase . visit, for: node)
78
80
visitIfEnabled ( BeginDocumentationCommentWithOneLineSummary . visit, for: node)
79
- visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
80
81
visitIfEnabled ( NoLeadingUnderscores . visit, for: node)
81
82
visitIfEnabled ( TypeNamesShouldBeCapitalized . visit, for: node)
82
83
visitIfEnabled ( UseTripleSlashForDocumentationComments . visit, for: node)
@@ -86,7 +87,6 @@ class LintPipeline: SyntaxVisitor {
86
87
onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
87
88
onVisitPost ( rule: AlwaysUseLowerCamelCase . self, for: node)
88
89
onVisitPost ( rule: BeginDocumentationCommentWithOneLineSummary . self, for: node)
89
- onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
90
90
onVisitPost ( rule: NoLeadingUnderscores . self, for: node)
91
91
onVisitPost ( rule: TypeNamesShouldBeCapitalized . self, for: node)
92
92
onVisitPost ( rule: UseTripleSlashForDocumentationComments . self, for: node)
@@ -181,8 +181,8 @@ class LintPipeline: SyntaxVisitor {
181
181
}
182
182
183
183
override func visit( _ node: EnumDeclSyntax ) -> SyntaxVisitorContinueKind {
184
+ visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
184
185
visitIfEnabled ( BeginDocumentationCommentWithOneLineSummary . visit, for: node)
185
- visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
186
186
visitIfEnabled ( FullyIndirectEnum . visit, for: node)
187
187
visitIfEnabled ( NoLeadingUnderscores . visit, for: node)
188
188
visitIfEnabled ( OneCasePerLine . visit, for: node)
@@ -191,8 +191,8 @@ class LintPipeline: SyntaxVisitor {
191
191
return . visitChildren
192
192
}
193
193
override func visitPost( _ node: EnumDeclSyntax ) {
194
+ onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
194
195
onVisitPost ( rule: BeginDocumentationCommentWithOneLineSummary . self, for: node)
195
- onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
196
196
onVisitPost ( rule: FullyIndirectEnum . self, for: node)
197
197
onVisitPost ( rule: NoLeadingUnderscores . self, for: node)
198
198
onVisitPost ( rule: OneCasePerLine . self, for: node)
@@ -202,14 +202,12 @@ class LintPipeline: SyntaxVisitor {
202
202
203
203
override func visit( _ node: ExtensionDeclSyntax ) -> SyntaxVisitorContinueKind {
204
204
visitIfEnabled ( AvoidRetroactiveConformances . visit, for: node)
205
- visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
206
205
visitIfEnabled ( NoAccessLevelOnExtensionDeclaration . visit, for: node)
207
206
visitIfEnabled ( UseTripleSlashForDocumentationComments . visit, for: node)
208
207
return . visitChildren
209
208
}
210
209
override func visitPost( _ node: ExtensionDeclSyntax ) {
211
210
onVisitPost ( rule: AvoidRetroactiveConformances . self, for: node)
212
- onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
213
211
onVisitPost ( rule: NoAccessLevelOnExtensionDeclaration . self, for: node)
214
212
onVisitPost ( rule: UseTripleSlashForDocumentationComments . self, for: node)
215
213
}
@@ -423,7 +421,6 @@ class LintPipeline: SyntaxVisitor {
423
421
override func visit( _ node: ProtocolDeclSyntax ) -> SyntaxVisitorContinueKind {
424
422
visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
425
423
visitIfEnabled ( BeginDocumentationCommentWithOneLineSummary . visit, for: node)
426
- visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
427
424
visitIfEnabled ( NoLeadingUnderscores . visit, for: node)
428
425
visitIfEnabled ( TypeNamesShouldBeCapitalized . visit, for: node)
429
426
visitIfEnabled ( UseTripleSlashForDocumentationComments . visit, for: node)
@@ -432,7 +429,6 @@ class LintPipeline: SyntaxVisitor {
432
429
override func visitPost( _ node: ProtocolDeclSyntax ) {
433
430
onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
434
431
onVisitPost ( rule: BeginDocumentationCommentWithOneLineSummary . self, for: node)
435
- onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
436
432
onVisitPost ( rule: NoLeadingUnderscores . self, for: node)
437
433
onVisitPost ( rule: TypeNamesShouldBeCapitalized . self, for: node)
438
434
onVisitPost ( rule: UseTripleSlashForDocumentationComments . self, for: node)
@@ -469,7 +465,6 @@ class LintPipeline: SyntaxVisitor {
469
465
override func visit( _ node: StructDeclSyntax ) -> SyntaxVisitorContinueKind {
470
466
visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
471
467
visitIfEnabled ( BeginDocumentationCommentWithOneLineSummary . visit, for: node)
472
- visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
473
468
visitIfEnabled ( NoLeadingUnderscores . visit, for: node)
474
469
visitIfEnabled ( TypeNamesShouldBeCapitalized . visit, for: node)
475
470
visitIfEnabled ( UseSynthesizedInitializer . visit, for: node)
@@ -479,7 +474,6 @@ class LintPipeline: SyntaxVisitor {
479
474
override func visitPost( _ node: StructDeclSyntax ) {
480
475
onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
481
476
onVisitPost ( rule: BeginDocumentationCommentWithOneLineSummary . self, for: node)
482
- onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
483
477
onVisitPost ( rule: NoLeadingUnderscores . self, for: node)
484
478
onVisitPost ( rule: TypeNamesShouldBeCapitalized . self, for: node)
485
479
onVisitPost ( rule: UseSynthesizedInitializer . self, for: node)
@@ -568,6 +562,7 @@ class LintPipeline: SyntaxVisitor {
568
562
visitIfEnabled ( AllPublicDeclarationsHaveDocumentation . visit, for: node)
569
563
visitIfEnabled ( AlwaysUseLowerCamelCase . visit, for: node)
570
564
visitIfEnabled ( BeginDocumentationCommentWithOneLineSummary . visit, for: node)
565
+ visitIfEnabled ( DontRepeatTypeInStaticProperties . visit, for: node)
571
566
visitIfEnabled ( NeverUseImplicitlyUnwrappedOptionals . visit, for: node)
572
567
visitIfEnabled ( UseTripleSlashForDocumentationComments . visit, for: node)
573
568
return . visitChildren
@@ -576,6 +571,7 @@ class LintPipeline: SyntaxVisitor {
576
571
onVisitPost ( rule: AllPublicDeclarationsHaveDocumentation . self, for: node)
577
572
onVisitPost ( rule: AlwaysUseLowerCamelCase . self, for: node)
578
573
onVisitPost ( rule: BeginDocumentationCommentWithOneLineSummary . self, for: node)
574
+ onVisitPost ( rule: DontRepeatTypeInStaticProperties . self, for: node)
579
575
onVisitPost ( rule: NeverUseImplicitlyUnwrappedOptionals . self, for: node)
580
576
onVisitPost ( rule: UseTripleSlashForDocumentationComments . self, for: node)
581
577
}
0 commit comments