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 == any 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 -
Declaration
Swift
public init(fromAny value: Any, context ruleID: String) throws(Issue)
-
The kinds for these tokens.
Declaration
Swift
var kinds: [SyntaxKind] { get }
-
Add a violation at the specified position using the default description and severity.
Declaration
Swift
mutating func append(_ position: AbsolutePosition)Parameters
positionThe position for the violation to append.
-
Add a violation and the correction at the specified position using the default description and severity.
Declaration
Swift
mutating func append(at position: AbsolutePosition, correction: ReasonedRuleViolation.ViolationCorrection? = nil)Parameters
positionThe position for the violation to append.
correctionAn optional correction to be applied when running with
--fix. -
Add violations for the specified positions using the default description and severity.
Declaration
Swift
mutating func append(contentsOf positions: [AbsolutePosition])Parameters
positionsThe positions for the violations to append.
-
All visitable declaration syntax types.
Declaration
Swift
static let all: `Self` -
All declarations except for the specified ones.
Declaration
Swift
static func allExcept(_ declarations: Element...) -> Array<Element>Parameters
declarationsThe declarations to exclude from all declarations.
Return Value
All declarations except for the specified ones.
View on GitHub
Install in Dash