Skip to content

Commit

Permalink
Update SwiftFormat to v. 0.55-beta-2 (#275)
Browse files Browse the repository at this point in the history
Co-authored-by: Cal Stephens <cal.stephens@airbnb.com>
  • Loading branch information
mannylopez and calda authored Jun 12, 2024
1 parent 7cf38c5 commit 77bb672
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
]),
dependencies: [
"AirbnbSwiftFormatTool",
"SwiftFormat",
"swiftformat",
"SwiftLintBinary",
]),

Expand All @@ -41,9 +41,9 @@ let package = Package(
dependencies: ["AirbnbSwiftFormatTool"]),

.binaryTarget(
name: "SwiftFormat",
url: "https://github.com/calda/SwiftFormat/releases/download/0.54-beta-7/SwiftFormat.artifactbundle.zip",
checksum: "0cf117050e7838f545009bfe4a75dbda98cff737cb847a7d065a89683e9e890a"),
name: "swiftformat",
url: "https://github.com/calda/SwiftFormat/releases/download/0.55-beta-2/SwiftFormat.artifactbundle.zip",
checksum: "f7ba281b879af7920e368144117269ba00abcc589b6d36f47ea0c21e62410a7c"),

.binaryTarget(
name: "SwiftLintBinary",
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ namespace :update do

updated_swift_format_reference = <<-EOS
.binaryTarget(
name: "SwiftFormat",
name: "swiftformat",
url: "https://github.com/calda/SwiftFormat/releases/download/#{latest_version_number}/SwiftFormat.artifactbundle.zip",
checksum: "#{checksum.strip}"),
EOS

regex = /[ ]*.binaryTarget\([\S\s]*name: "SwiftFormat"[\S\s]*?\),\s/
regex = /[ ]*.binaryTarget\([\S\s]*name: "swiftformat"[\S\s]*?\),\s/
updated_package_manifest = package_manifest_content.gsub(regex, updated_swift_format_reference)
File.open(package_manifest_path, "w") { |file| file.puts updated_package_manifest }

Expand Down
4 changes: 2 additions & 2 deletions Sources/AirbnbSwiftFormatTool/airbnb.swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
--rules preferForLoop
--rules conditionalAssignment
--rules wrapMultilineConditionalAssignment
--rules blankLineAfterMultilineSwitchCase
--rules consistentSwitchStatementSpacing
--rules blankLineAfterSwitchCase
--rules consistentSwitchCaseSpacing
--rules semicolons
--rules propertyType

0 comments on commit 77bb672

Please sign in to comment.