Classes
The following classes are available globally.
-
Utility to measure the time spent in each custom rule.
See moreDeclaration
Swift
public final class CustomRuleTimer
-
A persisted cache for storing and retrieving linter results.
See moreDeclaration
Swift
public final class LinterCache
-
Container to register and look up SwiftLint rules.
See moreDeclaration
Swift
public final class RuleRegistry : @unchecked Sendable
-
A storage mechanism for aggregating the results of
See moreCollectingRule
s.Declaration
Swift
public class RuleStorage : CustomStringConvertible
-
A unit of Swift source code, either on disk or in memory.
See moreDeclaration
Swift
public final class SwiftLintFile
extension SwiftLintFile: Equatable, Hashable
-
A SwiftSyntax
See moreSyntaxRewriter
that produces absolute positions where corrections were applied.Declaration
Swift
open class ViolationsSyntaxRewriter<Configuration> : SyntaxRewriter where Configuration : RuleConfiguration
-
Rewriter that indents or unindents a syntax piece including comments and nested AST nodes (e.g. a code block in a code block).
See moreDeclaration
Swift
public class CodeIndentingRewriter : SyntaxRewriter
-
A specialized
See moreViolationsSyntaxVisitor
that tracks declared identifiers per scope while traversing the AST.Declaration
Swift
open class DeclaredIdentifiersTrackingVisitor<Configuration: RuleConfiguration>: ViolationsSyntaxVisitor<Configuration>
-
A SwiftSyntax
See moreSyntaxVisitor
that produces absolute positions where violations should be reported.Declaration
Swift
open class ViolationsSyntaxVisitor<Configuration> : SyntaxVisitor where Configuration : RuleConfiguration