Issue #811

Don’t add SwiftFormat as SPM package, instead use command line directly

if which swiftformat >/dev/null; then
  swiftformat .
  echo "warning: SwiftFormaat not installed, download from"

Then install SwiftFormat locally

brew install swiftformat

Then make some rules in any file name with extension .swiftformat

While formatting, SwiftFormat will automatically check inside each subdirectory for the presence of a .swiftformat file and will apply any options that it finds there to the files in that directory.

# format options
--allman true

# file options
--exclude Pods
--exclude DerivedData

# rules
--disable elseOnSameLine,semicolons