The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::RequireConstantVersion"

Perl::Critic::Policy::ValuesAndExpressions::RequireConstantVersion - Require $VERSION to be a constant rather than a computed value. River stage three • 133 direct dependents • 408 total dependents

The $VERSION variable of a module should be a simple constant - either a number, a single-quotish string, or a 'use version' object. In the latter case the 'use version;' must appear on the same line as the object construction. Computing the version ...

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC

Perl::Critic::Policy::ValuesAndExpressions::RequireNumericVersion - $VERSION a plain number River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It asks you to use a plain number in a module $VERSION so that Perl's builtin version works. Any literal number is fine, or a string which is a number, $VERSION = 123; # ok $VERSION = '1.5'; # o...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC
2 results (0.073 seconds)