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 invalidConfiguration(ruleID: String, message: String? = nil)
-
Issued when an option is deprecated. Suggests an alternative optionally.
Declaration
Swift
case deprecatedConfigurationOption(ruleID: String, key: String, alternative: String? = nil)
-
Used in configuration parsing when no changes have been applied. Use only internally!
Declaration
Swift
case nothingApplied(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)
-
Some configuration keys are invalid.
Declaration
Swift
case invalidConfigurationKeys(ruleID: String, keys: Set<String>)
-
The configuration is inconsistent, that is options are mutually exclusive or one drives other values irrelevant.
Declaration
Swift
case inconsistentConfiguration(ruleID: String, message: String)
-
Used rule IDs are invalid.
Declaration
Swift
case invalidRuleIDs(Set<String>)
-
Found a rule configuration for a rule that is not present in
only_rules
.Declaration
Swift
case ruleNotPresentInOnlyRules(ruleID: String)
-
Found a rule configuration for a rule that is disabled.
Declaration
Swift
case ruleDisabledInDisabledRules(ruleID: String)
-
Found a rule configuration for a rule that is disabled in the parent configuration.
Declaration
Swift
case ruleDisabledInParentConfiguration(ruleID: String)
-
Found a rule configuration for a rule that is not enabled in
opt_in_rules
.Declaration
Swift
case ruleNotEnabledInOptInRules(ruleID: String)
-
Found a rule configuration for a rule that is not enabled in parent
only_rules
.Declaration
Swift
case ruleNotEnabledInParentOnlyRules(ruleID: 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)
-
A file at specified path was not found.
Declaration
Swift
case fileNotFound(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)
-
The baseline file at
path
is not readable or cannot be opened.Declaration
Swift
case baselineNotReadable(path: String)
-
Print the issue to the console.
Declaration
Swift
public func print()