.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Perl::Critic::OptionsProcessor 3pm" .TH Perl::Critic::OptionsProcessor 3pm 2023-07-26 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Perl::Critic::OptionsProcessor \- The global configuration default values, combined with command\-line values. .SH DESCRIPTION .IX Header "DESCRIPTION" This is a helper class that encapsulates the default parameters for constructing a Perl::Critic::Config object. There are no user-serviceable parts here. .SH "INTERFACE SUPPORT" .IX Header "INTERFACE SUPPORT" This is considered to be a non-public class. Its interface is subject to change without notice. .SH CONSTRUCTOR .IX Header "CONSTRUCTOR" .ie n .IP " new( %DEFAULT_PARAMS ) " 4 .el .IP "\f(CW new( %DEFAULT_PARAMS ) \fR" 4 .IX Item " new( %DEFAULT_PARAMS ) " Returns a reference to a new \f(CW\*(C`Perl::Critic::OptionsProcessor\*(C'\fR object. You can override the coded defaults by passing in name-value pairs that correspond to the methods listed below. .Sp This is usually only invoked by Perl::Critic::UserProfile, which passes in the global values from a \fI.perlcriticrc\fR file. This object contains no information for individual Policies. .SH METHODS .IX Header "METHODS" .ie n .IP " exclude() " 4 .el .IP "\f(CW exclude() \fR" 4 .IX Item " exclude() " Returns a reference to a list of the default exclusion patterns. If onto by Perl::Critic::PolicyParameter. there are no default exclusion patterns, then the list will be empty. .ie n .IP " force() " 4 .el .IP "\f(CW force() \fR" 4 .IX Item " force() " Returns the default value of the \f(CW\*(C`force\*(C'\fR flag (Either 1 or 0). .ie n .IP " include() " 4 .el .IP "\f(CW include() \fR" 4 .IX Item " include() " Returns a reference to a list of the default inclusion patterns. If there are no default exclusion patterns, then the list will be empty. .ie n .IP " only() " 4 .el .IP "\f(CW only() \fR" 4 .IX Item " only() " Returns the default value of the \f(CW\*(C`only\*(C'\fR flag (Either 1 or 0). .ie n .IP " profile_strictness() " 4 .el .IP "\f(CW profile_strictness() \fR" 4 .IX Item " profile_strictness() " Returns the default value of \f(CW\*(C`profile_strictness\*(C'\fR as an unvalidated string. .ie n .IP " single_policy() " 4 .el .IP "\f(CW single_policy() \fR" 4 .IX Item " single_policy() " Returns the default \f(CW\*(C`single\-policy\*(C'\fR pattern. (As a string.) .ie n .IP " severity() " 4 .el .IP "\f(CW severity() \fR" 4 .IX Item " severity() " Returns the default \f(CW\*(C`severity\*(C'\fR setting. (1..5). .ie n .IP " theme() " 4 .el .IP "\f(CW theme() \fR" 4 .IX Item " theme() " Returns the default \f(CW\*(C`theme\*(C'\fR setting. (As a string). .ie n .IP " top() " 4 .el .IP "\f(CW top() \fR" 4 .IX Item " top() " Returns the default \f(CW\*(C`top\*(C'\fR setting. (Either 0 or a positive integer). .ie n .IP " verbose() " 4 .el .IP "\f(CW verbose() \fR" 4 .IX Item " verbose() " Returns the default \f(CW\*(C`verbose\*(C'\fR setting. (Either a number or format string). .ie n .IP " color() " 4 .el .IP "\f(CW color() \fR" 4 .IX Item " color() " Returns the default \f(CW\*(C`color\*(C'\fR setting. (Either 1 or 0). .ie n .IP " pager() " 4 .el .IP "\f(CW pager() \fR" 4 .IX Item " pager() " Returns the default \f(CW\*(C`pager\*(C'\fR setting. (Either empty string or the pager command string). .ie n .IP " allow_unsafe() " 4 .el .IP "\f(CW allow_unsafe() \fR" 4 .IX Item " allow_unsafe() " Returns the default \f(CW\*(C`allow\-unsafe\*(C'\fR setting. (Either 1 or 0). .ie n .IP " criticism_fatal() " 4 .el .IP "\f(CW criticism_fatal() \fR" 4 .IX Item " criticism_fatal() " Returns the default \f(CW\*(C`criticism\-fatal\*(C'\fR setting (Either 1 or 0). .ie n .IP " color_severity_highest() " 4 .el .IP "\f(CW color_severity_highest() \fR" 4 .IX Item " color_severity_highest() " Returns the color to be used for coloring highest severity violations. .ie n .IP " color_severity_high() " 4 .el .IP "\f(CW color_severity_high() \fR" 4 .IX Item " color_severity_high() " Returns the color to be used for coloring high severity violations. .ie n .IP " color_severity_medium() " 4 .el .IP "\f(CW color_severity_medium() \fR" 4 .IX Item " color_severity_medium() " Returns the color to be used for coloring medium severity violations. .ie n .IP " color_severity_low() " 4 .el .IP "\f(CW color_severity_low() \fR" 4 .IX Item " color_severity_low() " Returns the color to be used for coloring low severity violations. .ie n .IP " color_severity_lowest() " 4 .el .IP "\f(CW color_severity_lowest() \fR" 4 .IX Item " color_severity_lowest() " Returns the color to be used for coloring lowest severity violations. .ie n .IP " program_extensions() " 4 .el .IP "\f(CW program_extensions() \fR" 4 .IX Item " program_extensions() " Returns a reference to the array of file name extensions to be interpreted as representing Perl programs. .SH "SEE ALSO" .IX Header "SEE ALSO" Perl::Critic::Config, Perl::Critic::UserProfile .SH AUTHOR .IX Header "AUTHOR" Jeffrey Ryan Thalhammer .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (c) 2005\-2011 Imaginative Software Systems. All rights reserved. .PP 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.