Module::Checkstyle::Problem - Represents a checkstyle violation
use Module::Checkstyle::Problem; my $problem = Module::Checkstyle::Problem->new('warn', q(bad variable name '$java'), 40, 'my_script.pl');
Constructs a new Module::Checkstyle::Problem object. $severity should be any of error or warn but others may be specified. $message should be a description of the violated check. $line may either be a scalar or a reference to an array where it will use the first element as line. $file should be the path to the file that violates the check.
Module::Checkstyle::Problem
$severity
$message
$line
$file
Returns the severity of the problem.
Returns the description of the problem.
Returns the line where the problem was found.
Returns the file that caused the problem.
Returns a stringified message combining severity, message, line and file if they are present.
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.