-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new lint negative_feature_names
and redundant_feature_names
#7539
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @camsteffen (or someone else) soon. Please see the contribution instructions for more information. |
There are two separate issues being linted here:
I think this should be two separate lints - Otherwise, this is nice, thanks! Fixes #1746 |
Could [features]
embedded-graphics-support = ["embedded-graphics"]
serde-support = ["serde"]
tokio-support = ["tokio"] Here's plenty of examples of this in the wild: https://grep.app/search?q=-support%20%3D%20%5B&filter[path.pattern][0]=Cargo.toml&filter[lang][0]=TOML |
Good advices! I am going to close this PR and implement two separate lints:
|
You could, if you want, reopen and edit this PR. The two lints can have a shared implementation, just with two |
Lints [ |
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.
Empty stderr files should be removed.
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.
There are still unresolved comments from previous reviews.
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.
There is still an empty stderr file to be deleted.
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.
Getting close. Thanks for your patience.
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.
Good to go! Please squash commits.
Can you squash the first commit as well since we are not keeping the initial lint name? |
Also please update the PR title and changelog in first post. |
confusing_features_naming
negative_feature_names
and redundant_feature_names
Thanks! @bors r+ |
📌 Commit 0a021d5 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Add new lint [
negative_feature_names
] to detect feature names with prefixesno-
ornot-
and new lint [redundant_feature_names
] to detect feature names with prefixesuse-
,with-
or suffix-support
changelog: Add new lint [
negative_feature_names
] and [redundant_feature_names
]