Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NSAttributedStringBuilder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Installs commit hooks\nif [[ -d \"$HOME/.rbenv\" ]]; then\n export PATH=~/.rbenv/shims:$PATH\n bundle exec lefthook install\nelse\n echo \"warning: Please install rbenv\"\nfi\n";
shellScript = "# Installs commit hooks\nif [[ -d \"$HOME/.rbenv\" ]]; then\n export PATH=\"$HOME/.rbenv/shims:$PATH\"\n bundle exec lefthook install\nelse\n echo \"warning: Please install rbenv\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
5 changes: 3 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ pre-commit:
fail_on_changes: "always"
fail_on_changes_diff: false
jobs:
- name: Format Swift files & abort commit if needed
run: swiftformat Sources --config .swiftformat
- name: Format Swift files
glob: "*.swift"
run: swiftformat {staged_files} --config .swiftformat