         // white_list rules take precendence over all else.
         if !whitelistRules.isEmpty {
             if !disabledRules.isEmpty || !optInRules.isEmpty {
-                queuedPrintError("'disabled_rules' or 'opt_in_rules' cannot be used in " +
-                    "combination with 'whitelist_rules'")
+                queuedPrintError("'\(ConfigurationKey.DisabledRules.rawValue)' or " +
+                    "'\(ConfigurationKey.OptInRules.rawValue)' cannot be used in combination " +
+                    "with '\(ConfigurationKey.WhitelistRules.rawValue)'")
                 return nil
             }
 

import SourceKittenFramework

private let fileManager = NSFileManager.defaultManager()

public struct Configuration: Equatable {
    public static let fileName = ".swiftlint.yml"

    }

    public init?(dict: [String: AnyObject]) {
        // Deprecation warning for "enabled_rules"
        if dict[ConfigurationKey.EnabledRules.rawValue] != nil {
            queuedPrint("'\(ConfigurationKey.EnabledRules.rawValue)' has been renamed to " +
                "'\(ConfigurationKey.OptInRules.rawValue)' and will be completely removed in a " +
                "future release.")
        }

        // Use either new 'opt_in_rules' or deprecated 'enabled_rules' for now.
        let optInRules = dict[ConfigurationKey.OptInRules.rawValue] as? [String] ??
            dict[ConfigurationKey.EnabledRules.rawValue] as? [String] ?? []

        self.init(
            disabledRules: dict[ConfigurationKey.DisabledRules.rawValue] as? [String] ?? [],
            optInRules: optInRules,
            whitelistRules: dict[ConfigurationKey.WhitelistRules.rawValue] as? [String] ?? [],
            included: dict[ConfigurationKey.Included.rawValue] as? [String] ?? [],
            excluded: dict[ConfigurationKey.Excluded.rawValue] as? [String] ?? [],
            reporter: dict[ConfigurationKey.Reporter.rawValue] as? String ??
                XcodeReporter.identifier,
            useNestedConfigs: dict[ConfigurationKey.UseNestedConfigs.rawValue] as? Bool ?? false,
            configuredRules: masterRuleList.configuredRulesWithDictionary(dict)
        )
    }
