-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Bikesheds to be done when RfCing clippy #533
Comments
See also: #541 |
Another thing is |
😄 I'm 👍 for warning it now if you want, btw, but yeah, it's something that we should list here. |
Obviously allow. That’s purely a programmer/style-preference thing.
Also allow?
is pretty common, though I’m not sure if this exact pattern is linted against. |
@nagisa only glob imports at the module level are linted against. The question is whether to also not lint on |
@nagisa I changed the lint to only trigger if the second arm is a block. In that case it's both more vertical space AND more indentation when using a match instead of an |
This is still preference/style based. |
Allow |
When I made a PR to fix all Clippy warnings in Cargo, they asked me to remove my commit about |
|
#1043 is bikesheddable |
Regarding #1043, I defend that |
Things like #1043 is why I prefer Python's |
Undeprecate |
I'm not sure if we should undeprecate, but a new lint sounds bikesheddable. |
@alexcrichton prefers Perhaps the lint should not |
Oh sorry, I didn't see this issue when I created #1192: I'd to make |
Default allow/warn for cc @shepmaster |
(Clippy was RFCd) |
At some point I wish to RfC the clippy lints.
One part of this will be figuring out Allow/Warn defaults. It will also be bikeshedding various questionable choices clippy has made.
Feel free to list anything you find bikesheddable here:
match_ref_pats
onif let
(isif let &foo = bar
okay?) ; "if let &foo = bar" triggers match_ref_pats #532shadow_unrelated
: warn or allowThe text was updated successfully, but these errors were encountered: