Perl::Critic::PolicyConfig - Configuration data for a Policy. |
Perl::Critic::PolicyConfig - Configuration data for a Policy.
A container for the configuration of a Policy.
This is considered to be a non-public class. Its interface is subject to change without notice.
get_policy_short_name()
get_set_themes()
set_themes
in the user's .perlcriticrc.
get_add_themes()
add_themes
in the user's .perlcriticrc.
get_severity()
severity
in the user's .perlcriticrc.
is_maximum_violations_per_document_unlimited()
maximum_violations_per_document
should
be considered to be unlimited.
get_maximum_violations_per_document()
maximum_violations_per_document
in the user's
.perlcriticrc.
get($parameter)
remove($parameter)
is_empty()
get_parameter_names()
set_profile_strictness($profile_strictness)
handle_extra_parameters($policy,$errors)
new()
once all valid
policies have been processed and removed from the configuration.
If profile_strictness is $PROFILE_STRICTNESS_QUIET, extra policy parameters are ignored.
If profile_strictness is $PROFILE_STRICTNESS_WARN, extra policy parameters generate a warning.
If profile_strictness is $PROFILE_STRICTNESS_FATAL, extra policy parameters generate a fatal error.
If no profile_strictness was set, the behavior is that specified by $PROFILE_STRICTNESS_DEFAULT.
MAKING YOUR POLICY CONFIGURABLE in the Perl::Critic::DEVELOPER manpage
Elliot Shank <perl@galumph.com>
Copyright (c) 2008-2011 Elliot Shank.
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.
Perl::Critic::PolicyConfig - Configuration data for a Policy. |