-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #442 from dashpay/feature/swift-format
chore: Format swift code
- Loading branch information
Showing
67 changed files
with
2,477 additions
and
2,139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,88 @@ | ||
# format options | ||
# options | ||
--swiftversion 5.7 | ||
--self remove # redundantSelf | ||
--importgrouping testable-bottom # sortedImports | ||
--commas always # trailingCommas | ||
--trimwhitespace always # trailingSpace | ||
--indent 4 #indent | ||
--ifdef no-indent #indent | ||
--indentstrings true #indent | ||
|
||
--allman false | ||
--binarygrouping 4,8 | ||
--commas always | ||
--comments indent | ||
--decimalgrouping 3,6 | ||
--elseposition next-line | ||
--empty void | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--fractiongrouping disabled | ||
--header ignore | ||
--hexgrouping 4,8 | ||
--hexliteralcase uppercase | ||
--ifdef indent | ||
--indent 4 | ||
--indentcase false | ||
--importgrouping testable-bottom | ||
--linebreaks lf | ||
--octalgrouping 4,8 | ||
--operatorfunc spaced | ||
--patternlet hoist | ||
--ranges spaced | ||
--self remove | ||
--semicolons never | ||
--trimwhitespace always | ||
--wraparguments preserve | ||
--wrapcollections preserve | ||
--wraparguments after-first # wrapArguments | ||
--wrapparameters after-first # wrapArguments | ||
--wrapcollections before-first # wrapArguments | ||
--wrapconditions after-first # wrapArguments | ||
--wrapreturntype if-multiline #wrapArguments | ||
--closingparen same-line # wrapArguments | ||
--wraptypealiases before-first # wrapArguments | ||
--funcattributes same-line # wrapAttributes | ||
--typeattributes prev-line # wrapAttributes | ||
--wrapternary before-operators # wraprations | ||
--extensionacl on-declarations # extensionAccessControl | ||
--patternlet inline # hoistPatternLet | ||
--redundanttype inferred # redundantType | ||
--typeblanklines preserve # blankLinesAtStartOfScope, blankLinesAtEndOfScope | ||
--emptybraces spaced # emptyBraces | ||
--someAny disabled # opaqueGenericParameters | ||
|
||
# We recommend a max width of 100 but _strictly enforce_ a max width of 130 | ||
--maxwidth 130 # wrap | ||
--maxwidth 130 # wrapArguments | ||
|
||
--stripunusedargs closure-only #unusedArguments | ||
|
||
# rules | ||
--rules anyObjectProtocol | ||
--rules blankLinesBetweenScopes | ||
--rules consecutiveSpaces | ||
--rules duplicateImports | ||
--rules extensionAccessControl | ||
--rules hoistPatternLet | ||
--rules indent | ||
--rules markTypes | ||
--rules redundantParens | ||
--rules redundantReturn | ||
--rules redundantSelf | ||
--rules redundantType | ||
--rules redundantPattern | ||
--rules redundantGet | ||
--rules redundantFileprivate | ||
--rules redundantRawValues | ||
--rules sortedImports | ||
--rules sortDeclarations | ||
--rules strongifiedSelf | ||
--rules trailingCommas | ||
--rules trailingSpace | ||
--rules typeSugar | ||
--rules wrap | ||
--rules wrapArguments | ||
--rules wrapAttributes | ||
--rules braces | ||
--rules redundantClosure | ||
--rules redundantInit | ||
--rules redundantVoidReturnType | ||
--rules redundantOptionalBinding | ||
--rules unusedArguments | ||
--rules spaceInsideBrackets | ||
--rules spaceInsideBraces | ||
--rules spaceAroundBraces | ||
--rules spaceInsideParens | ||
--rules spaceAroundParens | ||
--rules enumNamespaces | ||
--rules blockComments | ||
--rules spaceAroundComments | ||
--rules spaceInsideComments | ||
--rules blankLinesAtStartOfScope | ||
--rules blankLinesAtEndOfScope | ||
--rules emptyBraces | ||
--rules opaqueGenericParameters | ||
--rules genericExtensions | ||
--rules trailingClosures | ||
|
||
|
||
--disable andOperator,unusedArguments | ||
--enable isEmpty | ||
--rules anyObjectProtocol | ||
--rules assertionFailures | ||
--rules blankLineAfterImports | ||
--rules isEmpty | ||
--rules leadingDelimiters | ||
--rules wrapEnumCases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// | ||
// | ||
// Created by Pavel Tikhonenko | ||
// Copyright © 2022 Dash Core Group. All rights reserved. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
DashWallet/Sources/Infrastructure/Database/Migrations/SeedDB.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import Foundation | ||
import SQLiteMigrationManager | ||
import SQLite | ||
import SQLiteMigrationManager | ||
|
||
struct SeedDB: Migration { | ||
var version: Int64 = 20220713105051 | ||
var version: Int64 = 20220713105051 | ||
|
||
func migrateDatabase(_ db: Connection) throws { | ||
} | ||
func migrateDatabase(_ db: Connection) throws { } | ||
} |
Oops, something went wrong.