chore: enhance CI tests (#3344)
* chore: add swift linter * chore: add clang linters * chore: add kotlin linter * chore(ci): update workflows * chore(ci): clean workflows
This commit is contained in:
9
scripts/clang-format.sh
Executable file
9
scripts/clang-format.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if which clang-format >/dev/null; then
|
||||
find ios -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.m" -o -name "*.mm" \) -print0 | while read -d $'\0' file; do
|
||||
clang-format -style=file:./ios/.clang-format -i "$file"
|
||||
done
|
||||
else
|
||||
echo "[ERROR]: clang-format is not installed - Install with 'brew install clang-format' (or manually from https://clang.llvm.org/docs/ClangFormat.html)"
|
||||
fi
|
||||
Reference in New Issue
Block a user