Perl::Critic::Policy::Lax::RequireEndWithTrueConst - Perl::Critic::Policy::Lax::RequireEndWithTrueConst documentation


Perl-Critic-Lax documentation  | view source Contained in the Perl-Critic-Lax distribution.

Index


NAME

Top

Perl::Critic::Policy::Lax::RequireEndWithTrueConst

VERSION

Top

version 0.008

DESCRIPTION

Top

This policy behaves like Perl::Critic::Policy::Modules::RequireEndWithOne, but allows frivolity like ending with "Club sandwich".

The return value must be the final statement of the module.

WARNINGS

Top

There are many true values that this won't actually accept. The biggest issue is returning lists or other comma-delimited values. While it would be nice to support these, they're not the sort of club sandwich with which I usually end my code, so I'm not likely to code the fix myself.

Patches welcome.

AUTHOR

Top

Ricardo SIGNES <rjbs@cpan.org>

Adapted from Module::RequireEndWithOne by Chris Dolan

COPYRIGHT

Top


Perl-Critic-Lax documentation  | view source Contained in the Perl-Critic-Lax distribution.