-
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
Add [err_expect
] lint
#8606
Add [err_expect
] lint
#8606
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. |
Very awesome, I'll assign this to myself. Right now I'm a bit tired, but I'll try to review it later today or tomorrow 🙃 r? @xFrednet |
a1662f3
to
bcc0c9a
Compare
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.
This is already a great start 👍. I've added some notes for improvements and checks that need to be added. Thank you for the work, you already put into this. You're welcome to reach out if something is unclear 🙃
I put some more thought into the name. I think the current one |
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.
Nice improvements 👍 I've attempted to answer all your questions, if I missed something, please say so :)
a11fc56
to
de6b441
Compare
This comment was marked as resolved.
This comment was marked as resolved.
7eee09b
to
1294f26
Compare
6953ebd
to
13461c3
Compare
This comment was marked as resolved.
This comment was marked as resolved.
42aafd5
to
640824b
Compare
You've added something to |
640824b
to
8fa18fe
Compare
I think I went through all of your reviews, tests are passing, is this ready for merging? |
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.
Some minor comments and then it should be ready for merge. If you can, could you maybe also squash the intermediate commits that only added formatting or fixed something?
How are we looking now ? 😄 @xFrednet |
fd0cefe
to
8262085
Compare
I may have done an oopsie while squashing, oh well.. I'll just squash it all into one commit |
8262085
to
ba9a648
Compare
ba9a648
to
5c94567
Compare
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.
This version looks good to me, I have two more comments, that should be fixed quickly, and then we can merge this 🙃
I may have done an oopsie while squashing, oh well.. I'll just squash it all into one commit
It doesn't hurt to have everything in just one commit. Thank you for squashing. You can add the requested changes as a new commit or squash them if you like 🙃
- err() was meant to be employed instead of ok() - wraps comment
9c2e632
to
a7125b0
Compare
I have applied the changes but didn't squash this time, let me know if you need the commit description changed :) |
Everything looks good to me, thank you for the work you put into this! I hope you also had fun 🙃 @bors r+ |
📌 Commit a7125b0 has been approved by |
Add [`err_expect`] lint [`expect_err`] lint - \[ ] Followed [lint naming conventions][lint_naming] - \[x] Added passing UI tests (including committed `.stderr` file) - \[x] `cargo test` passes locally - \[x] Executed `cargo dev update_lints` - \[x] Added lint documentation - \[x] Run `cargo dev fmt` Fixes #1435 changelog: Added a lint to detect usage of .err().expect()
💔 Test failed - checks-action_test |
Oops, I edited the body of the PR, I think bors didn't like having a newline in there |
Correct, nice quick fix. Thank you!! @bors retry (changelog) |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
[
expect_err
] lint.stderr
file)cargo test
passes locallycargo dev update_lints
cargo dev fmt
Fixes #1435
changelog: Added a lint to detect usage of .err().expect()