-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustfmt
: Add CI scripts and format onion_utils.rs
#2877
Changes from all commits
d5344dc
997389f
627028d
18721ba
5d50e9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eox pipefail | ||
|
||
# Generate initial exclusion list | ||
#find . -name '*.rs' -type f |sort >rustfmt_excluded_files | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commented-out find command ( |
||
|
||
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
set -eox pipefail
command includes the-x
option, which prints commands and their arguments as they are executed. This can inadvertently leak sensitive information in logs. Consider removing-x
unless debugging.