mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
14 lines
333 B
Bash
14 lines
333 B
Bash
|
#!/bin/bash
|
||
|
set -eox pipefail
|
||
|
|
||
|
# Generate initial exclusion list
|
||
|
#find . -name '*.rs' -type f |sort >rustfmt_excluded_files
|
||
|
|
||
|
# Run fmt
|
||
|
TMP_FILE=$(mktemp)
|
||
|
find . -name '*.rs' -type f |sort >$TMP_FILE
|
||
|
for file in $(comm -23 $TMP_FILE rustfmt_excluded_files); do
|
||
|
echo "Checking formatting of $file"
|
||
|
rustfmt +1.63.0 --check $file
|
||
|
done
|