Fix lint issues.
This commit is contained in:
parent
1c2467e14a
commit
b0660a0ea7
@ -12,6 +12,7 @@ disabled_rules:
|
|||||||
- todo
|
- todo
|
||||||
- for_where
|
- for_where
|
||||||
- file_length
|
- file_length
|
||||||
|
- force_cast
|
||||||
|
|
||||||
excluded:
|
excluded:
|
||||||
- Modules/Secrets/Sources/Secrets/SecretKey.swift
|
- Modules/Secrets/Sources/Secrets/SecretKey.swift
|
||||||
|
@ -17,7 +17,6 @@ final class ExtensionContainersFile {
|
|||||||
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionContainersFile")
|
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionContainersFile")
|
||||||
|
|
||||||
private static var filePath: String = {
|
private static var filePath: String = {
|
||||||
// swiftlint:disable:next force_cast
|
|
||||||
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
||||||
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
||||||
return containerURL!.appendingPathComponent("extension_containers.plist").path
|
return containerURL!.appendingPathComponent("extension_containers.plist").path
|
||||||
|
@ -15,7 +15,6 @@ final class ExtensionFeedAddRequestFile: NSObject, NSFilePresenter {
|
|||||||
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
|
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
|
||||||
|
|
||||||
private static var filePath: String = {
|
private static var filePath: String = {
|
||||||
// swiftlint:disable:next force_cast
|
|
||||||
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
||||||
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
||||||
return containerURL!.appendingPathComponent("extension_feed_add_request.plist").path
|
return containerURL!.appendingPathComponent("extension_feed_add_request.plist").path
|
||||||
|
@ -62,7 +62,6 @@ private extension FeedTreeControllerDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func childNodesForContainerNode(_ containerNode: Node) -> [Node]? {
|
func childNodesForContainerNode(_ containerNode: Node) -> [Node]? {
|
||||||
// swiftlint:disable:next force_cast
|
|
||||||
let container = containerNode.representedObject as! Container
|
let container = containerNode.representedObject as! Container
|
||||||
|
|
||||||
var children = [AnyObject]()
|
var children = [AnyObject]()
|
||||||
|
@ -11,7 +11,6 @@ import Foundation
|
|||||||
struct WidgetDataDecoder {
|
struct WidgetDataDecoder {
|
||||||
|
|
||||||
static func decodeWidgetData() throws -> WidgetData {
|
static func decodeWidgetData() throws -> WidgetData {
|
||||||
// swiftlint:disable:next force_cast
|
|
||||||
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
|
||||||
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
||||||
let dataURL = containerURL?.appendingPathComponent("widget-data.json")
|
let dataURL = containerURL?.appendingPathComponent("widget-data.json")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user