Skip to content

Files

Latest commit

 

History

History
34 lines (24 loc) · 575 Bytes

Style-RedundantHeredocDelimiterQuotes.md

File metadata and controls

34 lines (24 loc) · 575 Bytes

Pattern: Redundant heredoc delimiter quotes

Issue: -

Description

Checks for redundant heredoc delimiter quotes.

Examples

# bad
do_something(<<~'EOS')
  no string interpolation style text
EOS

# good
do_something(<<~EOS)
  no string interpolation style text
EOS

do_something(<<~'EOS')
  #{string_interpolation_style_text_not_evaluated}
EOS

do_something(<<~'EOS')
  Preserve \
  newlines
EOS

Further Reading