Skip to content

Commit

Permalink
Improve SwiftFormat configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
F1248 committed Sep 2, 2024
1 parent 89d95bc commit 9299d49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Genius/Extensions/Swift/Dictionary.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// swiftlint:disable:this file_name

//
// Dictionary.swift
// Genius
//
// Created by F1248.
//

extension Dictionary {}

extension Optional {

func contains<Key, Value>(key: Key) -> Bool where Wrapped == [Key: Value] {
Expand Down

0 comments on commit 9299d49

Please sign in to comment.