Skip to content

Commit

Permalink
ci: configure ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 committed May 8, 2024
1 parent 472c2ca commit d2880b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pre-commit:
run: yarn eslint --cache --max-warnings=0 {staged_files}
lint:objc:
glob: "*.{h,mm,m,hpp,cpp,c}"
run: echo {all_files} && bash ./script/clang-lint.sh {staged_files}
run: bash ./script/clang-lint.sh {staged_files}
lint:kotlin:
glob: "*.kt"
run: bash ./script/ktlint-lint.sh {staged_files}
Expand All @@ -19,7 +19,7 @@ format:
commands:
format:objc:
glob: "*.{h,mm,m,hpp,cpp,c}"
run: echo {all_files} && bash ./script/clang-format.sh {all_files}
run: bash ./script/clang-format.sh {all_files}
format:kotlin:
glob: "*.kt"
run: bash ./script/ktlint-format.sh {all_files}
Expand Down
2 changes: 1 addition & 1 deletion script/clang-format.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
for file in "$@"; do
echo "🦋 clang-format ${file}"
# echo "🦋 clang-format ${file}"
clang-format -i "${file}"
done

0 comments on commit d2880b9

Please sign in to comment.