Add "check-all" script
This commit is contained in:
15
scripts/check-all.sh
Executable file
15
scripts/check-all.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Formatting Swift code.."
|
||||
./scripts/swiftformat.sh
|
||||
|
||||
echo "Linting Swift code.."
|
||||
./scripts/swiftlint.sh
|
||||
|
||||
echo "Linting Kotlin code.."
|
||||
./scripts/ktlint.sh
|
||||
|
||||
echo "Linting JS/TS code.."
|
||||
yarn lint --fix
|
||||
|
||||
echo "All done!"
|
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if which swiftformat >/dev/null; then
|
||||
cd ios && swiftformat .
|
||||
cd ios && swiftformat --quiet .
|
||||
else
|
||||
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
||||
fi
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if which swiftlint >/dev/null; then
|
||||
cd ios && swiftlint --fix && swiftlint
|
||||
cd ios && swiftlint --quiet --fix && swiftlint --quiet
|
||||
else
|
||||
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user