Layout/LineEndStringConcatenationIndentation
- undefined method `parent' for nil:NilClass
#11994
Labels
Layout/LineEndStringConcatenationIndentation
- undefined method `parent' for nil:NilClass
#11994
Hello 👋
Given a file
foo.rb
:Which is a valid syntax:
Expected behavior
Should not trigger error.
Actual behavior
rubocop -d --only Layout/LineEndStringConcatenationIndentation foo.rb
Steps to reproduce the problem
In
LineEndStringConcatenationIndentation
theon_dstr
receive a node:Then node.children result in:
So the
base_column
method receive a[][0]
which isnil
.rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb
Lines 83 to 93 in aaf1c3f
rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb
Lines 120 to 124 in aaf1c3f
rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb
Lines 126 to 133 in aaf1c3f
RuboCop version
The text was updated successfully, but these errors were encountered: