jellyflood/Scripts/SwiftFormat.sh

6 lines
259 B
Bash
Executable File

# Type a script or drag a script file from your workspace to insert its path.
if which swiftformat >/dev/null; then
swiftformat . --lint --lenient
else
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
fi