Skip to content

Commit

Permalink
use swiftformat config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShlomoCode committed Aug 11, 2024
1 parent 1e55013 commit e9e6519
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: SwiftFormat
run: swiftformat --lint --swiftversion 5.0 --header strip . --reporter github-actions-log
run: swiftformat --lint . --reporter github-actions-log
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--swiftversion 5.0
--header strip
2 changes: 1 addition & 1 deletion DockDoor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd BuildTools\nSDKROOT=(xcrun --sdk macosx --show-sdk-path)\n#swift package update #Uncomment this line temporarily to update the version used to the latest matching your BuildTools/Package.swift file\nswift run -c release swiftformat \"$SRCROOT\" --swiftversion 5.0 --header strip\n";
shellScript = "cd BuildTools\nSDKROOT=(xcrun --sdk macosx --show-sdk-path)\n#swift package update #Uncomment this line temporarily to update the version used to the latest matching your BuildTools/Package.swift file\nswift run -c release swiftformat \"$SRCROOT\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down

0 comments on commit e9e6519

Please sign in to comment.