Skip to content

Commit

Permalink
Merge pull request #29 from RakuyoKit/feature/format
Browse files Browse the repository at this point in the history
Feature/format
  • Loading branch information
rakuyoMo authored Jun 15, 2024
2 parents 686fbe1 + ceffb6e commit a763974
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ let package = Package(

.binaryTarget(
name: "SwiftFormat",
url: "https://github.com/nicklockwood/SwiftFormat/releases/download/0.53.10/SwiftFormat.artifactbundle.zip",
checksum: "c407fbf9f37b31eda5ab9049cc5c2cb5e11e81842dc7523fc31bc4b64af485c6"
url: "https://github.com/nicklockwood/SwiftFormat/releases/download/0.54.0/SwiftFormat.artifactbundle.zip",
checksum: "edf4ed2f1664ad621ae71031ff915e0c6ef80ad66e87ea0e5a10c3580a27a6dd"
),

.binaryTarget(
Expand Down
14 changes: 8 additions & 6 deletions Sources/RakuyoSwiftFormatTool/rakuyo.swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@
--shortoptionals always #typeSugar
--semicolons never #semicolons
--doccomments preserve #docComments
--computedvarattrs prev-line # wrapAttributes
--storedvarattrs prev-line # wrapAttributes
--complexattrs prev-line # wrapAttributes
--nilinit insert # redundantNilInit

# We recommend a max width of 100 but _strictly enforce_ a max width of 130
--maxwidth 130 # wrap

# The remaining three options have not been released yet, use `varattributes` first
--varattributes prev-line # wrapAttributes
# --computedvarattrs prev-line # wrapAttributes
# --storedvarattrs prev-line # wrapAttributes
# --complexattrs prev-line # wrapAttributes

# rules
--rules anyObjectProtocol
--rules blankLinesBetweenScopes
Expand Down Expand Up @@ -106,6 +104,10 @@
--rules assertionFailures
--rules blankLinesAroundMark
--rules blankLinesBetweenChainedFunctions
--rules redundantTypedThrows
--rules consistentSwitchCaseSpacing
--rules blankLineAfterSwitchCase
--rules redundantNilInit

# Not released yet, will be used after release
# --rules blankLineAfterMultilineSwitchCase
Expand Down

0 comments on commit a763974

Please sign in to comment.