Issue
public enum Issue : LocalizedError, Equatable
All possible SwiftLint issues which are printed as warnings by default.
-
The configuration didn’t match internal expectations.
Declaration
Swift
case unknownConfiguration(ruleID: String)
-
Rule is listed multiple times in the configuration.
Declaration
Swift
case listedMultipleTime(ruleID: String, times: Int)
-
An identifier
old
has been renamed tonew
.Declaration
Swift
case renamedIdentifier(old: String, new: String)
-
Configuration for a rule is invalid.
Declaration
Swift
case invalidConfiguration(ruleID: String)
-
Some configuration keys are invalid.
Declaration
Swift
case invalidConfigurationKeys([String])
-
A generic warning specified by a string.
Declaration
Swift
case genericWarning(String)
-
A generic error specified by a string.
Declaration
Swift
case genericError(String)
-
A deprecation warning for a rule.
Declaration
Swift
case ruleDeprecated(ruleID: String)
-
The initial configuration file was not found.
Declaration
Swift
case initialFileNotFound(path: String)
-
The file at
path
is not readable or cannot be opened.Declaration
Swift
case fileNotReadable(path: String?, ruleID: String)
-
The file at
path
is not writable.Declaration
Swift
case fileNotWritable(path: String)
-
The file at
path
cannot be indexed by a specific rule.Declaration
Swift
case indexingError(path: String?, ruleID: String)
-
No arguments were provided to compile a file at
path
within a specific rule.Declaration
Swift
case missingCompilerArguments(path: String?, ruleID: String)
-
Cursor information cannot be extracted from a specific location.
Declaration
Swift
case missingCursorInfo(path: String?, ruleID: String)
-
An error that occurred when parsing YAML.
Declaration
Swift
case yamlParsing(String)
-
Flag to enable warnings for deprecations being printed to the console. Printing is enabled by default.
Declaration
Swift
public static var printDeprecationWarnings: Bool
-
Print the issue to the console.
Declaration
Swift
public func print()