Perl::Critic::Policy::Modules::RequireEndWithOne - End each module with an explicitly 1; instead of some funky expression.

All files included via "use" or "require" must end with a true value to indicate to the caller that the include was successful. The standard practice is to conclude your .pm files with "1;", but some authors like to get clever and return some other t...

PETDANCE/Perl-Critic-1.130 - 21 Jul 2017 04:28:55 GMT - Search in distribution

Perl::Critic::Policy::Lax::RequireEndWithTrueConst - ending your package with a simple, fun true value is okay

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....

RJBS/Perl-Critic-Lax-0.013 - 13 Mar 2017 12:34:51 GMT - Search in distribution

2 results (0.184 seconds)