RAGESS is formatted by SwiftFormat.
The following configuration will allow SwiftFormat to run automatically when pushing to a remote repository.
If the file is modified by SwiftFormat, which is automatically executed when pushing, the push is blocked; the developer checks the file for changes, commits, and pushes again. If the file is not modified by SwiftFormat, the push is successful.
brew install swiftformat
cd RAGESS
chmod +x setup-hooks.sh
.git/hooks/pre-push
, execute the following command.
./setup-hooks.sh