File: perlcriticrc

package info (click to toggle)
libhtml-tidy5-perl 1.06-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: perl: 1,853; makefile: 14
file content (55 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
verbose = %f:%l:%c %m (%p)\n    %r\n\n

[-BuiltinFunctions::ProhibitBooleanGrep]

[-CodeLayout::ProhibitParensWithBuiltins]
[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0
[-CodeLayout::RequireASCII]
# t/unicode.t uses UTF8.
[-CodeLayout::RequireTidyCode]
# Never works for me.

[Compatibility::PodMinimumVersion]
above_version = 5.008008

[-ControlStructures::ProhibitPostfixControls]

[-Documentation::PodSpelling]
[-Documentation::RequirePodAtEnd]
[-Documentation::RequirePodSections]

[-Editor::RequireEmacsFileVariables]

# We're a utility.  We're OK with die.
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireUseOfExceptions]

[-InputOutput::ProhibitJoinedReadline]
[-InputOutput::RequireCheckedSyscalls]
functions = open opendir read readline readdir close closedir

[-Modules::ProhibitAutomaticExportation]
[-Modules::RequireExplicitInclusion]
[-Modules::RequireVersionVar]

[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]

[-Subroutines::ProhibitCallsToUndeclaredSubs]
[-Subroutines::ProhibitCallsToUnexportedSubs]
# Too many subs coming in from Test::More
[-Subroutines::RequireArgUnpacking]

[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality]
[-ValuesAndExpressions::RequireInterpolationOfMetachars]

[-Variables::ProhibitPackageVars]
[-Variables::ProhibitPunctuationVars]