1 ##############################################################################
2 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/lib/Perl/Critic/Utils/Constants.pm $
3 # $Date: 2008-07-03 10:19:10 -0500 (Thu, 03 Jul 2008) $
6 ##############################################################################
8 package Perl::Critic::Utils::Constants;
15 use Perl::Critic::Utils qw{ hashify };
19 our $VERSION = '1.088';
21 #-----------------------------------------------------------------------------
24 $PROFILE_STRICTNESS_WARN
25 $PROFILE_STRICTNESS_FATAL
26 $PROFILE_STRICTNESS_QUIET
27 $PROFILE_STRICTNESS_DEFAULT
33 profile_strictness => [
35 $PROFILE_STRICTNESS_WARN
36 $PROFILE_STRICTNESS_FATAL
37 $PROFILE_STRICTNESS_QUIET
38 $PROFILE_STRICTNESS_DEFAULT
44 #-----------------------------------------------------------------------------
46 Readonly::Scalar our $PROFILE_STRICTNESS_WARN => 'warn';
47 Readonly::Scalar our $PROFILE_STRICTNESS_FATAL => 'fatal';
48 Readonly::Scalar our $PROFILE_STRICTNESS_QUIET => 'quiet';
49 Readonly::Scalar our $PROFILE_STRICTNESS_DEFAULT => $PROFILE_STRICTNESS_WARN;
51 Readonly::Hash our %PROFILE_STRICTNESSES =>
53 $PROFILE_STRICTNESS_WARN,
54 $PROFILE_STRICTNESS_FATAL,
55 $PROFILE_STRICTNESS_QUIET,
58 #-----------------------------------------------------------------------------
64 #-----------------------------------------------------------------------------
72 Perl::Critic::Utils::Constants - Global constants.
76 Defines commonly used constants for L<Perl::Critic>.
79 =head1 IMPORTABLE CONSTANTS
83 =item C<$PROFILE_STRICTNESS_WARN>
85 =item C<$PROFILE_STRICTNESS_FATAL>
87 =item C<$PROFILE_STRICTNESS_QUIET>
89 =item C<$PROFILE_STRICTNESS_DEFAULT>
91 =item C<%PROFILE_STRICTNESSES>
93 Valid values for the L<perlcritic/"-profile-strictness"> option.
94 Determines whether recoverable problems found in a profile file appear
95 as warnings, are fatal, or are ignored.
96 C<$PROFILE_STRICTNESS_DEFAULT> is set to C<$PROFILE_STRICTNESS_WARN>.
97 Importable via the C<:profile_strictness> tag.
105 Elliot Shank <perl@galumph.com>
110 Copyright (c) 2007-2008 Elliot Shank. All rights reserved.
112 This program is free software; you can redistribute it and/or modify
113 it under the same terms as Perl itself. The full text of this license
114 can be found in the LICENSE file included with this module.
120 # cperl-indent-level: 4
122 # indent-tabs-mode: nil
123 # c-indentation-style: bsd
125 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :