BodyLengthRuleVisitor
public final class BodyLengthRuleVisitor<Parent> : ViolationsSyntaxVisitor<SeverityLevelsConfiguration<Parent>> where Parent : Rule
Visitor that collection violations of code block lengths.
-
The code block types to check.
See moreDeclaration
Swift
public enum Kind
-
Initializer.
Declaration
Swift
@inlinable public init(kind: Kind, file: SwiftLintFile, configuration: SeverityLevelsConfiguration<Parent>)
Parameters
kind
The code block type to check. See
Kind
.file
The file to collect violation for.
configuration
The configuration that defines the acceptable limits.
-
Declaration
Swift
override public func visitPost(_ node: EnumDeclSyntax)
-
Declaration
Swift
override public func visitPost(_ node: ClassDeclSyntax)
-
Declaration
Swift
override public func visitPost(_ node: StructDeclSyntax)
-
Declaration
Swift
override public func visitPost(_ node: ActorDeclSyntax)
-
Declaration
Swift
override public func visitPost(_ node: ClosureExprSyntax)
-
Declaration
Swift
override public func visitPost(_ node: FunctionDeclSyntax)
-
Declaration
Swift
override public func visitPost(_ node: InitializerDeclSyntax)