Array
public extension Array where Element == Example
extension Array: AcceptableByConfigurationElement where Element: AcceptableByConfigurationElement
public extension Array where Element == SwiftLintSyntaxToken
public extension Array where Element == ReasonedRuleViolation
public extension Array where Element == DeclSyntaxProtocol.Type
-
Make these examples skip wrapping in comment tests.
Declaration
Swift
func skipWrappingInCommentTests() -> Array<Element>
-
Make these examples skip wrapping in string tests.
Declaration
Swift
func skipWrappingInStringTests() -> Array<Element>
-
Make these examples skip multi-byte offset tests.
Declaration
Swift
func skipMultiByteOffsetTests() -> Array<Element>
-
Make these examples skip disable command tests.
Declaration
Swift
func skipDisableCommandTests() -> Array<Element>
-
Remove all violation markers from the examples.
Declaration
Swift
func removingViolationMarker() -> Array<Element>
-
Declaration
Swift
public func asOption() -> OptionType
-
The kinds for these tokens.
Declaration
Swift
var kinds: [SyntaxKind] { get }
-
Append a minimal violation for the specified position.
Declaration
Swift
mutating func append(_ position: AbsolutePosition)
Parameters
position
The position for the violation to append.
-
Append minimal violations for the specified positions.
Declaration
Swift
mutating func append(contentsOf positions: [AbsolutePosition])
Parameters
positions
The positions for the violations to append.
-
All visitable declaration syntax types.
Declaration
Swift
static let all: `Self`
-
Useful for class-specific checks since extensions and protocols do not allow nested classes.
Declaration
Swift
static let extensionsAndProtocols: `Self`
-
All declarations except for the specified ones.
Declaration
Swift
static func allExcept(_ declarations: Element...) -> Array<Element>
Parameters
declarations
The declarations to exclude from all declarations.
Return Value
All declarations except for the specified ones.