-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
str = <<-HTML.strip_heredoc.strip_heredoc.strip_heredoc.encode!('utf-8', invalid: :replace, replace: '').strip.force_encoding('binary')
<html>
</html>
HTML
Expected behavior
idk
Actual behavior
Describe here what actually happened.
Please use rubocop --debug
when pasting rubocop output as it contains additional information.
str = <<-HTML.strip_heredoc.strip_heredoc.strip_heredoc.encode!('utf-8', invalid: :replace,
replace: '').strip.force_encoding('binary')
<html>
</html>
HTML
Steps to reproduce the problem
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
RuboCop version
$ bin/bundle exec rubocop -V
1.67.0 (using Parser 3.3.5.0, rubocop-ast 1.32.3, analyzing as Ruby 2.7, running on jruby 3.1.4) [java]
- rubocop-performance 1.22.1