Add "check-all" script

This commit is contained in:
Marc Rousavy
2021-03-09 12:19:18 +01:00
parent e8a4e9f6b5
commit 3de4675592
8 changed files with 62 additions and 43 deletions

15
scripts/check-all.sh Executable file
View 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!"

View File

@@ -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

View File

@@ -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