We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style/StringConcatenation
Style/StringConcatenation crashes on the following line. You can replicate by making a file with just this line as its contents.
arr.join("") + "\r\n" + (arr2.empty? ? "" : arr2.join("") + "\r\n")
Backtrace:
Parser::Source::TreeRewriter detected clobbering /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter.rb:400:in `trigger_policy' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter.rb:387:in `enforce_policy' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:233:in `call' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:233:in `swallow' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:97:in `with' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:124:in `place_in_hierarchy' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:106:in `do_combine' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:117:in `place_in_hierarchy' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:131:in `block in combine_children' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:130:in `each' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:130:in `inject' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:130:in `combine_children' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:221:in `merge' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:104:in `do_combine' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter/action.rb:30:in `combine' /Users/alex/.rvm/gems/ruby-2.7.1/gems/parser-2.7.1.4/lib/parser/source/tree_rewriter.rb:143:in `merge!' /Users/alex/.rvm/gems/ruby-2.7.1/gems/rubocop-0.91.1/lib/rubocop/cop/base.rb:273:in `apply_correction' /Users/alex/.rvm/gems/ruby-2.7.1/gems/rubocop-0.91.1/lib/rubocop/cop/base.rb:355:in `attempt_correction' /Users/alex/.rvm/gems/ruby-2.7.1/gems/rubocop-0.91.1/lib/rubocop/cop/base.rb:339:in `correct' /Users/alex/.rvm/gems/ruby-2.7.1/gems/rubocop-0.91.1/lib/rubocop/cop/base.rb:126:in `add_offense' /Users/alex/.rvm/gems/ruby-2.7.1/gems/rubocop-0.91.1/lib/rubocop/cop/style/string_concatenation.rb:44:in `on_send'
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
rubocop -V
bundle exec rubocop -V
$ [bundle exec] rubocop -V 0.91.1 (using Parser 2.7.1.4, rubocop-ast 0.4.2, running on ruby 2.7.1 x86_64-darwin19)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Style/StringConcatenation
crashes on the following line. You can replicate by making a file with just this line as its contents.Backtrace:
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: