Files
openhaystack/Makefile
Milan Stute 3c84aae67d Changes to linter and autoformat workflow for development
- drop SwiftLint in favor of swift-format
- disable autoformatting in build phase (otherwise we loose history)
- add Git pre-commit hook to autoformat before committing
2021-03-11 10:23:48 +01:00

11 lines
221 B
Makefile

APPDIR := OpenHaystack
default:
install-hooks: .pre-commit
cp .pre-commit .git/hooks/pre-commit
app-autoformat:
swift-format format -i -r $(APPDIR)
clang-format -i $(shell find $(APPDIR) -name '*.h' -o -name '*.m')