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

Port mitsuhiko's excessive bools lints #5125

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

basil-cow
Copy link
Contributor

@basil-cow basil-cow commented Feb 2, 2020

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?

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 2, 2020
clippy_lints/src/excessive_bools.rs Outdated Show resolved Hide resolved
clippy_lints/src/utils/mod.rs Show resolved Hide resolved
tests/ui-toml/fn_params_excessive_bools/test.stderr Outdated Show resolved Hide resolved
clippy_lints/src/excessive_bools.rs Outdated Show resolved Hide resolved
@flip1995 flip1995 added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Feb 2, 2020
@basil-cow basil-cow force-pushed the too_many_bools branch 2 times, most recently from e310333 to bead760 Compare February 2, 2020 19:20
@basil-cow
Copy link
Contributor Author

fixed, I think

@flip1995 flip1995 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Feb 3, 2020
@bors
Copy link
Collaborator

bors commented Feb 4, 2020

☔ The latest upstream changes (presumably #5061) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

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

Thanks! Only 3 NITs and a rebase left to do.

clippy_lints/src/excessive_bools.rs Outdated Show resolved Hide resolved
clippy_lints/src/excessive_bools.rs Outdated Show resolved Hide resolved
clippy_lints/src/utils/mod.rs Outdated Show resolved Hide resolved
@basil-cow basil-cow force-pushed the too_many_bools branch 3 times, most recently from 2586037 to 3901ca7 Compare February 5, 2020 15:39
README.md Outdated Show resolved Hide resolved
@flip1995
Copy link
Member

flip1995 commented Feb 5, 2020

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 5, 2020

📌 Commit 338fb7a has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Feb 5, 2020

⌛ Testing commit 338fb7a with merge 4f988bd...

bors added a commit that referenced this pull request 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
Copy link
Collaborator

bors commented Feb 5, 2020

💔 Test failed - checks-travis

@flip1995 flip1995 added S-waiting-on-bors Status: The marked PR was approved and is only waiting bors and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Feb 5, 2020
@flip1995
Copy link
Member

flip1995 commented Feb 6, 2020

@bors retry

bors added a commit that referenced this pull request 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
Copy link
Collaborator

bors commented Feb 6, 2020

⌛ Testing commit 338fb7a with merge 5cb2e7f...

@bors
Copy link
Collaborator

bors commented Feb 6, 2020

💔 Test failed - checks-travis

@flip1995
Copy link
Member

flip1995 commented Feb 6, 2020

@bors retry

@bors
Copy link
Collaborator

bors commented Feb 6, 2020

⌛ Testing commit 338fb7a with merge 75e983a...

bors added a commit that referenced this pull request 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
Copy link
Collaborator

bors commented Feb 6, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing 75e983a to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: The marked PR was approved and is only waiting bors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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