mirror of
https://github.com/seemoo-lab/openhaystack.git
synced 2026-02-14 09:39:52 +00:00
- 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
11 lines
221 B
Makefile
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')
|