Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (57 sloc) 2.035 kb
aa49298 @schwern Add a perltidy and perlcritic.
schwern authored
1 ##
2 ### Configure perlcritic display behavior.
3 ###
4
5 # Change the default message to show the policy name so we can shut it up if necessary
6 verbose = %m [%p] at %f line %l, near '%r'\n
7
8 # Force perlcritic to use color, even when run through a pager.
9 color = 1
10
11 # Use a pager.
12 pager = $PAGER
13
14
15 ###
16 ### Turn off policies.
17 ###
18
19 # Nuthin wrong with the expression form of map and grep.
20 [-BuiltinFunctions::RequireBlockMap]
21 [-BuiltinFunctions::RequireBlockGrep]
22
23 # We realize that localizing a variable does not retain it's original value,
24 # thanks.
25 [-Variables::RequireInitializationForLocalVars]
26
27 # I'd rather use a few unnecessary "" then forget to interpolate.
28 [-ValuesAndExpressions::ProhibitInterpolationOfLiterals]
29
30 # Inline POD is more worthwhile than the dubious optimization of putting it
31 # after the __END__ block
32 [-Documentation::RequirePodAtEnd]
33
34 # No, we're not going to use English.
35 [-Variables::ProhibitPunctuationVars]
36
37 # That's just rediculous
38 [-ControlStructures::ProhibitPostfixControls]
39 [-ValuesAndExpressions::ProhibitEmptyQuotes]
40 [-ValuesAndExpressions::ProhibitNoisyQuotes]
41
42 # Test::Builder makes heavy use of local()
43 [-Variables::ProhibitLocalVars]
44
45 # Nuthin wrong with @$foo
46 [-References::ProhibitDoubleSigils]
47
48 # We're going to be doing this a lot
49 [-Modules::ProhibitMultiplePackages]
fba7d06 @schwern Minor fixes to pass perlcritic severity 5
schwern authored
50 [-Modules::RequireFilenameMatchesPackage]
aa49298 @schwern Add a perltidy and perlcritic.
schwern authored
51
52 ###
53 ### Configure policies
54 ###
55
56 # Extend the ability to play with @_ to 3 line subroutines.
57 [Subroutines::RequireArgUnpacking]
58 short_subroutine_statements = 3
59
60 # No tabs ever
61 [CodeLayout::ProhibitHardTabs]
62 allow_leading_tabs = 0
63
64 # 'no strict "refs"' is ok
65 [TestingAndDebugging::ProhibitNoStrict]
66 allow = refs
67
68 ###
69 ### New policies and options which are not released yet.
70 ###
71
72 # "no warnings" is fine as long as it's restricted to one or more categories
73 [TestingAndDebugging::ProhibitNoWarnings]
74 allow_with_category_restriction = 1
75
76 # Don't need /x on small regexes.
77 [RegularExpressions::RequireExtendedFormatting]
78 minimum_regex_length_to_complain_about = 12
Something went wrong with that request. Please try again.