Skip to content

Commit 4b9b6af

Browse files
committed
Add swiftlint ignore function body rule for decodable init
1 parent e110313 commit 4b9b6af

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CodeEditModules/Modules/AppPreferences/src/Model/General/GeneralPreferences.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public extension AppPreferences {
4444
/// Default initializer
4545
public init() {}
4646

47+
// swiftlint:disable function_body_length
4748
/// Explicit decoder init for setting default values when key is not present in `JSON`
4849
public init(from decoder: Decoder) throws {
4950
let container = try decoder.container(keyedBy: CodingKeys.self)
@@ -88,6 +89,7 @@ public extension AppPreferences {
8889
forKey: .issueNavigatorDetail
8990
) ?? .upTo3
9091
}
92+
// swiftlint:enable function_body_length
9193
}
9294

9395
/// The appearance of the app

0 commit comments

Comments
 (0)