Protocols
The following protocols are available globally.
-
An interface for enumerating files that can be linted by SwiftLint.
See moreDeclaration
Swift
public protocol LintableFileManager
-
Type-erased protocol used to check whether a rule is collectable.
Declaration
Swift
public protocol AnyCollectingRule : Rule
-
A rule that requires knowledge of all other files being linted.
See moreDeclaration
Swift
public protocol CollectingRule : AnyCollectingRule
-
An interface for reporting violations as strings.
See moreDeclaration
Swift
public protocol Reporter : CustomStringConvertible
-
An executable value that can identify issues (violations) in Swift source code.
See moreDeclaration
Swift
public protocol Rule
-
A rule that is not enabled by default. Rules conforming to this need to be explicitly enabled by users.
Declaration
Swift
public protocol OptInRule : Rule
-
A rule that does not need SourceKit to operate and can still operate even after SourceKit has crashed.
Declaration
Swift
public protocol SourceKitFreeRule : Rule
-
A configuration value for a rule to allow users to modify its behavior.
See moreDeclaration
Swift
public protocol RuleConfiguration
-
A configuration for a rule that allows to configure at least the severity.
See moreDeclaration
Swift
public protocol SeverityBasedRuleConfiguration : RuleConfiguration
-
A SwiftSyntax
See moreSyntaxRewriter
that produces absolute positions where corrections were applied.Declaration
Swift
public protocol ViolationsSyntaxRewriter : SyntaxRewriter
-
A SwiftLint Rule backed by SwiftSyntax that does not use SourceKit requests.
See moreDeclaration
Swift
public protocol SwiftSyntaxRule : SourceKitFreeRule