Closed
Description
We cannot assume that everything that implements include?
also implements exclude?
. While Rails does add this to some things, it doesn't add them to everything and making this assumption is dangerous.
For example, IPAddr
(in stdlib) has an include?
method but does not have an exclude?
.
Expected behaviour
Inserting !something.include?(x)
should not correct to something.exclude?(x)
.
Actual behavior
It was corrected.
RuboCop version
$ [bundle exec] rubocop -V
1.3.0
Activity