forked from RxSwiftCommunity/RxAlamofire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanup.sh
24 lines (22 loc) · 793 Bytes
/
cleanup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if which swiftformat >/dev/null; then
`which swiftformat` "Sources" --config .swiftformat --quiet
`which swiftformat` "Tests" --config .swiftformat --quiet
`which swiftformat` "Examples/RxAlamofireDemo-tvOS" --config .swiftformat --quiet
`which swiftformat` "Examples/RxAlamofireDemo-iOS" --config .swiftformat --quiet
`which swiftformat` "Package.swift" --config .swiftformat --quiet
else
echo "error: swiftformat not installed, do `sh setup.sh` to install swiftformat."
exit 1
fi
if which swiftlint >/dev/null; then
`which swiftlint` autocorrect --quiet
else
echo "error: SwiftLint not installed, do `sh setup.sh` to install SwiftLint."
exit 1
fi
if which xcodegen >/dev/null; then
`which xcodegen`
else
echo "error: XcodeGen not installed, do `sh setup.sh` to install XcodeGen."
exit 1
fi