diff --git a/Sources/WordPressShared/WordPressComLanguageDatabase.swift b/Sources/WordPressShared/WordPressComLanguageDatabase.swift index 21f8c4e8..d1239f17 100644 --- a/Sources/WordPressShared/WordPressComLanguageDatabase.swift +++ b/Sources/WordPressShared/WordPressComLanguageDatabase.swift @@ -128,8 +128,6 @@ class WordPressComLanguageDatabase: NSObject { return (Locale.current as NSLocale).displayName(forKey: NSLocale.Key.identifier, value: slug) ?? name } - - /// Designated initializer. Will fail if any of the required properties is missing /// init?(dict: [String: Any]) { @@ -147,7 +145,6 @@ class WordPressComLanguageDatabase: NSObject { slug = unwrappedSlug } - /// Given an array of raw languages, will return a parsed array. /// static func fromArray(_ array: [[String: Any]] ) -> [Language] { @@ -169,7 +166,6 @@ class WordPressComLanguageDatabase: NSObject { return NSLocale.preferredLanguages.first?.lowercased() ?? "en" }() - // MARK: - Private Constants fileprivate let filename = "Languages" @@ -180,7 +176,6 @@ class WordPressComLanguageDatabase: NSObject { "zh-hant": "zh-tw" ] - // MARK: - Private Nested Structures /// Keys used to parse the raw languages. diff --git a/WordPressKit.xcodeproj/project.pbxproj b/WordPressKit.xcodeproj/project.pbxproj index 8d2efb49..8b7c462c 100644 --- a/WordPressKit.xcodeproj/project.pbxproj +++ b/WordPressKit.xcodeproj/project.pbxproj @@ -2835,6 +2835,7 @@ 9368C7761EC5EF1B0092CE8E /* Sources */, 9368C7771EC5EF1B0092CE8E /* Frameworks */, 9368C7791EC5EF1B0092CE8E /* Resources */, + 0C2F2A2C2C41F82B000A153E /* SwiftLint */, ); buildRules = ( ); @@ -3256,6 +3257,28 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 0C2F2A2C2C41F82B000A153E /* SwiftLint */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = SwiftLint; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "./Pods/SwiftLint/swiftlint lint\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 9368C7761EC5EF1B0092CE8E /* Sources */ = { isa = PBXSourcesBuildPhase;