-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
3 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,5 +1,6 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
/Tools/.build | ||
/*.xcodeproj | ||
swift-format/ |
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,7 +1,7 @@ | ||
{ | ||
"pre-commit": [ | ||
"swift run --package-path swift-format swift-format -r Sources -i", | ||
"swift run --package-path swift-format swift-format -r Tests -i", | ||
"swift run --package-path Tools swift-format -r Sources -i", | ||
"swift run --package-path Tools swift-format -r Tests -i", | ||
"git add ." | ||
] | ||
} |
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,3 @@ | ||
#!/bin/bash | ||
git clone [email protected]:apple/swift-format.git swift-format | ||
swift run captain uninstall | ||
swift run captain install |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "swift-format", | ||
"repositoryURL": "https://github.com/apple/swift-format", | ||
"state": { | ||
"branch": "master", | ||
"revision": "0266e971d63a48148ab9d55bb4559dc23f974033", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "SwiftSyntax", | ||
"repositoryURL": "https://github.com/apple/swift-syntax", | ||
"state": { | ||
"branch": "swift-DEVELOPMENT-SNAPSHOT-2020-01-29-a", | ||
"revision": "16f6af54d9ad3cfcb35cd557288783dded1107fd", | ||
"version": null | ||
} | ||
}, | ||
{ | ||
"package": "swift-tools-support-core", | ||
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "693aba4c4c9dcc4767cc853a0dd38bf90ad8c258", | ||
"version": "0.0.1" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// swift-tools-version:5.1 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Tools", | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-format", .branch("master")) | ||
] | ||
) |