diff --git a/.swiftformat b/.swiftformat index bc00e38..6c6c941 100644 --- a/.swiftformat +++ b/.swiftformat @@ -2,18 +2,22 @@ acronyms,\ blankLinesBetweenImports,\ blockComments,\ - docComments,\ isEmpty,\ - markTypes,\ noExplicitOwnership,\ organizeDeclarations,\ redundantProperty,\ - sortSwitchCases,\ - wrapEnumCases,\ wrapMultilineConditionalAssignment,\ +--acronyms "ID,OS,URL,UUID" +--condassignment always +--fractiongrouping enabled +--header "\n {file}\n Genius\n\n Created by {author.name}.\n" --markcategories false ---nospaceoperators ..< +--maxwidth 128 --organizationmode type +--ranges no-space --self init-only +--semicolons never +--shortoptionals always --typeblanklines preserve +--xcodeindentation enabled diff --git a/Genius/Extensions/Swift/Dictionary.swift b/Genius/Extensions/Swift/Dictionary.swift index d9fa58b..1e8e858 100644 --- a/Genius/Extensions/Swift/Dictionary.swift +++ b/Genius/Extensions/Swift/Dictionary.swift @@ -1,5 +1,3 @@ -// swiftlint:disable:this file_name - // // Dictionary.swift // Genius @@ -7,6 +5,8 @@ // Created by F1248. // +extension Dictionary {} + extension Optional { func contains(key: Key) -> Bool where Wrapped == [Key: Value] {