Pattern: Invalid heredoc delimiter case
Issue: -
This rule checks that your heredocs are using the configured case. By default it is configured to enforce uppercase heredocs.
# EnforcedStyle: uppercase (default)
# good
<<-SQL
SELECT * FROM foo
SQL
# bad
<<-sql
SELECT * FROM foo
sql
# EnforcedStyle: lowercase
# good
<<-sql
SELECT * FROM foo
sql
# bad
<<-SQL
SELECT * FROM foo
SQL
Attribute | Value |
---|---|
EnforcedStyle | uppercase |
SupportedStyles | lowercase, uppercase |