mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Use dry-run to check for clang-format errors instead of inplace editing
This commit is contained in:
parent
cc31a4a4b0
commit
616f39a31e
3
.github/workflows/ensure-formatting.yaml
vendored
3
.github/workflows/ensure-formatting.yaml
vendored
@ -15,5 +15,4 @@ jobs:
|
||||
- name: Test formatting for all files
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
./scripts/reformat-all.sh
|
||||
[[ $(git status --porcelain | wc -l) == 0 ]]
|
||||
./scripts/check-format.sh
|
6
scripts/check-format.sh
Executable file
6
scripts/check-format.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Go to repository root
|
||||
cd "$(dirname "$0")/.." || exit 2
|
||||
|
||||
find ./src ./test -iname '*.h' -o -iname '*.cpp' | xargs clang-format -Werror -ferror-limit=1 --dry-run
|
Loading…
x
Reference in New Issue
Block a user