Skip to content
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

Merged
merged 2 commits into from
May 19, 2021

Conversation

UebelAndre
Copy link
Collaborator

I forgot to add this attribute in the initial PR. Now the check should appropriately use the configured rustfmt.toml file.

@google-cla google-cla bot added the cla: yes label May 19, 2021
@@ -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(
Copy link
Collaborator

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?

Copy link
Collaborator Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah, right! Indeed!

rust/private/rustfmt.bzl Outdated Show resolved Hide resolved
Copy link
Collaborator

@illicitonion illicitonion left a 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(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah, right! Indeed!

@UebelAndre UebelAndre merged commit c420e15 into bazelbuild:main May 19, 2021
@UebelAndre UebelAndre deleted the fmt branch May 25, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants