logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator - Write " <<'THE_END'; "

Affiliation

       This Policy is part of the core Perl::Critic distribution.

Author

       Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

Configuration

       This Policy is not configurable except for the standard options.

Description

       For legibility, HEREDOC terminators should be all UPPER CASE letters (and numbers), without any
       whitespace.  Conway also recommends using a standard prefix like "END_" but this policy doesn't enforce
       that.

         print <<'the End';  #not ok
         Hello World
         the End

         print <<'THE_END';  #ok
         Hello World
         THE_END

Name

       Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator - Write " <<'THE_END'; "
       instead of " <<'theEnd'; ".

See Also

       Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator

See Also