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
RuboCop v0.89.0 reports an offense when using regexp method, not URI.regexp. A small example is here:
defregexp/\A[a-z ]*\z/end'a' =~ regexp
Expected behavior
No offenses found
Actual behavior
Inspecting 1 file
W
Offenses:
example.rb:5:8: W: Lint/UriRegexp: URI.regexp is obsolete and should not be used. Instead, use URI::DEFAULT_PARSER.make_regexp.
'a' =~ regexp
^^^^^^
1 file inspected, 1 offense detected
Steps to reproduce the problem
Run rubocop against the above example code.
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
RuboCop v0.89.0 reports an offense when using
regexp
method, notURI.regexp
. A small example is here:Expected behavior
No offenses found
Actual behavior
Steps to reproduce the problem
Run
rubocop
against the above example code.RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: