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

Import mitsuhiko's "Did you mean to use a state machine?" lint #4

Closed
pythonesque opened this issue Nov 19, 2014 · 6 comments · Fixed by #5125
Closed

Import mitsuhiko's "Did you mean to use a state machine?" lint #4

pythonesque opened this issue Nov 19, 2014 · 6 comments · Fixed by #5125
Labels
A-lint Area: New lints E-medium Call for participation: Medium difficulty level problem and requires some initial experience.

Comments

@pythonesque
Copy link
Contributor

Because man that thing is useful.

@Manishearth Manishearth added E-medium Call for participation: Medium difficulty level problem and requires some initial experience. A-lint Area: New lints labels Aug 11, 2015
@basil-cow
Copy link
Contributor

Can anyone provide context for this? I can't really find anything about that lint on the internet or in mitsuhiko's github

@mati865
Copy link
Contributor

mati865 commented Jan 29, 2020

https://github.com/mitsuhiko/rust-excessive-bools-lint
There are 2 lints inside: for excessive amount of booleans in structs and another for excessive amount of booleans in functions.

@basil-cow
Copy link
Contributor

Hmm, what about licensing? If we port it, do we have to include it's license?

@mati865
Copy link
Contributor

mati865 commented Jan 29, 2020

Hmm, what about licensing? If we port it, do we have to include it's license?

I'll defer that question to somebody who understands licensing.

@flip1995
Copy link
Member

We would have to rewrite it, without looking at the source code. Or we'd have to include the copyright notice of the project. Or mitsuhiko surrenders his copyright to us (the Clippy project) and we can reimplement it here in Clippy.

@basil-cow
Copy link
Contributor

Ok, I'll rewrite it without looking at the source code then

bors added a commit that referenced this issue Feb 5, 2020
Port mitsuhiko's excessive bools lints

Closes #4 .
changelog: add `struct_excessive_bools` and `fn_params_excessive_bools` lints.
I moved is_trait_impl_item check because at first I implemented it as a late pass for some reason but then I realized it's actually an early lint. But it's a useful function to have, should I move it into a separate pr?
bors added a commit that referenced this issue Feb 6, 2020
Port mitsuhiko's excessive bools lints

Closes #4 .
changelog: add `struct_excessive_bools` and `fn_params_excessive_bools` lints.
I moved is_trait_impl_item check because at first I implemented it as a late pass for some reason but then I realized it's actually an early lint. But it's a useful function to have, should I move it into a separate pr?
@bors bors closed this as completed in 75e983a Feb 6, 2020
camsteffen added a commit to camsteffen/rust-clippy that referenced this issue Jan 15, 2021
# This is the 1st commit message:

Split filter_map into manual_filter_map

# The commit message rust-lang#2 will be skipped:

# fixup! Split filter_map into manual_filter_map

# The commit message rust-lang#3 will be skipped:

# fixup! Split filter_map into manual_filter_map

# The commit message rust-lang#4 will be skipped:

# fixup! Split filter_map into manual_filter_map

# The commit message rust-lang#5 will be skipped:

# fixup! Split filter_map into manual_filter_map

# The commit message rust-lang#6 will be skipped:

# fixup! Split filter_map into manual_filter_map
surechen added a commit to surechen/rust-clippy that referenced this issue Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints E-medium Call for participation: Medium difficulty level problem and requires some initial experience.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants