-
Notifications
You must be signed in to change notification settings - Fork 3
/
perlcriticrc
50 lines (34 loc) · 1.41 KB
/
perlcriticrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is the perlcriticrc for criticizing Perl::Critic itself when doing development.
# This is not the same as the perlcriticrc that is used in the xt/ tests.
# It's used by "./Build perlcritic"
verbose = %f:%l:%c %m (%p)\n %r\n\n
[-Bangs::ProhibitCommentedOutCode]
# Lots of commented-out code in docs.
[-Bangs::ProhibitFlagComments]
[-Bangs::ProhibitRefProtoOrProto]
[-Bangs::ProhibitVagueNames]
[CodeLayout::ProhibitHardTabs]
[-CodeLayout::RequireTidyCode]
[-CodeLayout::RequireTrailingCommaAtNewline]
[-Compatibility::PodMinimumVersion]
[-Documentation::PodSpelling]
[-Documentation::ProhibitBadAproposMarkup]
[-Documentation::ProhibitLinkToSelf]
[-Documentation::RequirePodSections]
[-InputOutput::RequireBriefOpen]
[InputOutput::RequireCheckedSyscalls]
functions = open opendir read readline readdir
[-RegularExpressions::ProhibitUnusualDelimiters]
[-RegularExpressions::RequireBracesForMultiline]
# All sorts of policies use qr<>, including multiline.
[-Subroutines::ProhibitCallsToUndeclaredSubs]
# We pull stuff out of Perl::Critic::Utils all over.
[-Subroutines::ProhibitCallsToUnexportedSubs]
# Fails extensively on Readonly -> Readonly::Scalar etc
[-Subroutines::ProhibitUnusedPrivateSubroutines]
[-TooMuchCode::ProhibitDuplicateLiteral]
[-ValuesAndExpressions::ProhibitFiletest_f]
[Variables::ProhibitReusedNames]
severity = 5
#[Variables::ProhibitUnusedVarsStricter]
#allow_unused_subroutine_arguments = 0