Module::Checkstyle::Util - Convenient functions for checks
Return the string "Expected '$expected' but got '$got'" but with $expected and $got reduced to the reftype if they are references.
$expected
$got
Creates a new Module::Checkstyle::Problem object. $config must be a Module::Checkstyle::Config object which will be used togther will the caller and $directive to determine severity. $line can be either a PPI::Element object, an array reference or a scalar. If it is an array reference the 0-elementwill be used as line.
Module::Checkstyle::Problem
$config
Module::Checkstyle::Config
$directive
$line
PPI::Element
Creates a new Module::Checkstyle::Problem object with the given severity, message, line and file.
Returns 1 if $value is either "y", "yes", "true" or "1" not regarding case. All other value returns 0.
$value
Returns the numeric value given in $value if it is integer-numeric with an optional minus-sign. All other values returns 0.
Returns a regular expression object that will match what's given in $value. If it creation of the regexp-object was unsuccessfull it will return undefined.
Returns a true value if the string $value equals a valid position property. These are same and alone.
Returns a true value if the string $value equals a valid alignment property. These are left, middle and right.
Module::Checkstyle
To install Module::Checkstyle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Checkstyle
CPAN shell
perl -MCPAN -e shell install Module::Checkstyle
For more information on module installation, please visit the detailed CPAN module installation guide.