flyerhzm / rails_best_practices

a code metric tool for rails projects
http://rails-bestpractices.com
MIT License
4.16k stars 276 forks source link

"deprecated Object#=~ is called on Array; it always returns nil" written in the standard error a lot of times #378

Closed MarcoCostantini closed 2 years ago

MarcoCostantini commented 4 years ago

I tried rails_best_practices (version 1.20.0) on my file, but it wrote in the standard error, 2674 times, the line

/var/lib/gems/2.7.0/gems/rails_best_practices-1.20.0/lib/rails_best_practices/core/check.rb:44: warning: deprecated Object#=~ is called on Array; it always returns nil
ybiquitous commented 4 years ago

@MarcoCostantini I believe this issue was fixed by PR #370 (merged to the master branch).

See also #353

alex-benoit commented 4 years ago

@flyerhzm Would it be possible to release a version on rubygems with this fix?

mishina2228 commented 2 years ago

It appears that v1.20.1 has already been released with this fix.