-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Prefer be_nil over be nil #693
Comments
/cc @bquorning @pocke |
/cc @Darhazer |
I would say yes, I’m open to doing work on fixing those two as well. Just need your guidance where that work should be done. We could also solve the other issue that I saw which is some dead code in predicates matcher. |
Refs #578 |
Ping |
Alright, I am back 👋 I would say the So I think this would be a brand new cop. The examples in #244 don’t really apply here, but please note this comment (#244 (comment)):
So perhaps your cop should be configurable, to let people prefer enforcing either You are welcome to also work on the “unused code in predicate_matcher.rb“ issue #578, but let’s discuss that → over there. |
what about the fact that we have be true and be false. seems more consistent to still be able to say be nil without the underscore no? we no longer have be_true/false so enforcing the now seemingly one-off be_nil feels odd to me. my .0000btc. |
Can you please elaborate on that? |
In RSpec v3, the old Maybe we can get correctly implemented |
|
Can probably be closed now that #1239 has been merged. FWIW, I also find |
I would like to introduce a check like this.
My question is where should it be implemented. Should I add it in the Predicate Matcher?
The text was updated successfully, but these errors were encountered: