mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
print deprecation warning for 'enabled_rules' to stderr rather than stdout
to follow the convention used elsewhere in the project as to not invalidate the output structure from formatted violation reporters like json, csv & checkstyle.
This commit is contained in:
@@ -99,7 +99,7 @@ public struct Configuration: Equatable {
|
||||
public init?(dict: [String: AnyObject]) {
|
||||
// Deprecation warning for "enabled_rules"
|
||||
if dict[ConfigurationKey.EnabledRules.rawValue] != nil {
|
||||
queuedPrint("'\(ConfigurationKey.EnabledRules.rawValue)' has been renamed to " +
|
||||
queuedPrintError("'\(ConfigurationKey.EnabledRules.rawValue)' has been renamed to " +
|
||||
"'\(ConfigurationKey.OptInRules.rawValue)' and will be completely removed in a " +
|
||||
"future release.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user