-
Notifications
You must be signed in to change notification settings - Fork 412
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_aspect
now appropriately uses a config
#748
Conversation
@@ -108,6 +110,11 @@ users may tag a target with `norustfmt` to have it skipped. Additionally, genera | |||
source files are also ignored by this aspect. | |||
""", | |||
attrs = { | |||
"_config": attr.label( |
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'd be inclined to make this configurable (i.e. remove the leading _
) so that people can override it if they really want - WDYT?
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.
Is that possible in an aspect?
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.
Oh, yeah, right! Indeed!
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!
@@ -108,6 +110,11 @@ users may tag a target with `norustfmt` to have it skipped. Additionally, genera | |||
source files are also ignored by this aspect. | |||
""", | |||
attrs = { | |||
"_config": attr.label( |
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.
Oh, yeah, right! Indeed!
I forgot to add this attribute in the initial PR. Now the check should appropriately use the configured
rustfmt.toml
file.