Perl::Critic::ConfigErrors - An exception object collecting a set of problems found by Perl::Critic::Config.
A set of configuration settings can have multiple problems. This is an object for collecting all the problems found so that the user can see them in one run. Stringification is overridden to allow this object to show all the messages when printed as the result of an eval.
eval
add_message( $message )
Accumulate the parameter with rest of the messages.
add_bad_option_message( $option_name, $value, $source, $suffix )
Accumulate a standardized message for a bad option. $option_name should have a leading minus ("-") if the option was specified on a command line. $value is the input that was found wanting. $source should be the origination point of the $value, most likely the name of a .perlcriticrc. $suffix is the non-standard part of the message, describing the fault(s) of the $value.
$option_name
$value
$source
$suffix
messages()
Returns a reference to an array of the collected messages.
to_string()
Returns a string representation of this object, suitable for printing as an error message.
Elliot Shank <perl@galumph.com>
Copyright (c) 2007 Elliot Shank. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
To install Perl::Critic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic
CPAN shell
perl -MCPAN -e shell install Perl::Critic
For more information on module installation, please visit the detailed CPAN module installation guide.