Pattern: Use of it
without argument
Issue: -
it
calls without arguments will refer to the first block param in Ruby 3.4. So use it()
or self.it
to ensure compatibility.
# bad
do_something { it }
# good
do_something { it() }
do_something { self.it }