The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Perl::Critic::Defaults - Manage default settings for Perl::Critic

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.

CONSTRUCTOR

new( %DEFAULT_PARAMS )

Returns a reference to a new Perl::Critic::Defaults object. The arguments are name-value pairs that correspond to the methods listed below.

METHODS

exclude()

Returns a reference to a list of the default exclusion patterns. If there are no default exclusion patterns, then the list will be empty.

force()

Returns the default value of the force flag (Either 1 or 0).

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.

only()

Returns the default value of the only flag (Either 1 or 0).

singlepolicy()

Returns the default single-policy pattern. (As a string.)

severity()

Returns the default severity setting. (1..5).

theme()

Returns the default theme setting. (As a string).

top()

Returns the default top setting. (Either 0 or a positive integer).

verbose()

Returns the default verbose setting. (Either a number or format string).

AUTHOR

Jeffrey Ryan Thalhammer <thaljef@cpan.org>

COPYRIGHT

Copyright (c) 2005-2007 Jeffrey Ryan Thalhammer. 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.