-
Notifications
You must be signed in to change notification settings - Fork 410
Replace rustfmt_excluded_files with rustfmt_skip cfg attribute #3802
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
Conversation
👋 Thanks for assigning @tnull as a reviewer! |
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.
Thanks, this looks great and works in my text editor!
lightning/src/ln/update_fee_tests.rs
Outdated
@@ -526,6 +541,14 @@ pub fn test_update_fee_that_funder_cannot_afford() { | |||
check_closed_event!(nodes[1], 1, reason, [node_a_id], channel_value); | |||
} | |||
|
|||
#[xtest(feature = "_externalize_tests")] |
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.
Are the update_fee_test
and channel.rs
changes intentional? It seems like they could use their own commit if so
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.
I have really no idea how that slipped through. Reverted.
1176fc2
to
e7af289
Compare
Requested @tnull's review since @TheBlueMatt is off review this week, so hopefully we can land. |
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.
Sure, why not. One comment, otherwise LGTM.
This change removes the custom `rustfmt_excluded_files` mechanism and instead uses the an attribute at the top of each excluded file. No functional changes are introduced. This simplifies formatting workflows by enabling standard `cargo fmt` and editor format-on-save features without custom scripts. The older `rustfmt` cfg attribute is used because newer formatting directives only support code blocks, which would require more effort to apply consistently. This commit focuses on improving developer experience by streamlining formatting setup, while more granular or comprehensive formatting can be addressed later.
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.
LGTM
Landing this as the changes since Val's ACK are minimal.
This change removes the custom
rustfmt_excluded_files
mechanism and instead uses an attribute at the top of each excluded file.No functional changes are introduced. This simplifies formatting workflows by enabling standard
cargo fmt
and editor format-on-save features without custom scripts.The older
rustfmt
cfg attribute is used because newer formatting directives only support code blocks, which would require more effort to apply consistently. This commit focuses on improving developer experience by streamlining formatting setup, while more granular or comprehensive formatting can be addressed later.