You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Performance/StringIdentifierArgument turns the string path argument to Unreloader.autoload to a symbol, which causes exception:
<internal:dir>:220:in `glob': no implicit conversion of Symbol into String (TypeError)
from /Users/dave/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rack-unreloader-2.1.0/lib/rack/unreloader.rb:31:in `block in expand_paths'
…ierArgument`
Fixesrubocop#346.
This PR fixes a false positive for `Performance/StringIdentifierArgument`
when using a command method with receiver. It makes that cop to allow
some command methods that don't normally specify a receiver.
Expected behavior
Running rubocop with
Performance/StringIdentifierArgument
enabled on a file that uses https://github.com/jeremyevans/rack-unreloader should not autocorrect the parameters toUnreloader.autoload
to symbols.Actual behavior
The
Performance/StringIdentifierArgument
turns the string path argument toUnreloader.autoload
to a symbol, which causes exception:Steps to reproduce the problem
I started with https://github.com/jeremyevans/roda-sequel-stack/, followed the README to setup my app:
Then I added the standard gem, which enables the
Performance/StringIdentifierArgument
cop, and noticed the incorrect autocorrect.RuboCop version
The text was updated successfully, but these errors were encountered: