mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 17:48:10 +00:00
11 lines
240 B
Plaintext
11 lines
240 B
Plaintext
|
#!/bin/sh
|
||
|
error=0
|
||
|
for f in $*; do
|
||
|
changes=$(clang-format -output-replacements-xml "$f" | grep -c '^<replacement ')
|
||
|
if test "$changes" -gt 0; then
|
||
|
echo "$f ... $changes changes needed"
|
||
|
error=1
|
||
|
fi
|
||
|
done
|
||
|
exit $error
|