File: .perlcriticrc

package info (click to toggle)
munin 2.999.14-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,036 kB
  • sloc: perl: 31,052; sh: 12,473; java: 1,924; python: 852; makefile: 336; ruby: 232; awk: 169; xml: 45; sql: 11
file content (46 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download
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
# note the policy causing each warning, so they can be turned off more easily
verbose  = [%p] %m at %f line %l, near '%r'\n

# no warnings if non-existent policies are mentioned in the config.
profile-strictness = quiet

### Turn off policies ##########################################################

[-Modules::RequireVersionVar]
[-ErrorHandling::RequireUseOfExceptions]
[-BuiltinFunctions::RequireBlockGrep]
[-BuiltinFunctions::RequireBlockMap]


### Configure policies #########################################################

[Variables::ProhibitPunctuationVars]
severity = 5
allow = $_ $! $0 $@ $$

[CodeLayout::RequireTidyCode]
perltidyrc = perltidyrc

[CodeLayout::ProhibitTrailingWhitespace]
severity = 5

[CodeLayout::ProhibitQuotedWordLists]
severity = 5

[CodeLayout::RequireTrailingCommas]
severity = 5

[ControlStructures::ProhibitUnreachableCode]
severity = 5

[Documentation::RequirePackageMatchesPodName]
severity = 5

[Miscellanea::ProhibitUnrestrictedNoCritic]
severity = 5

[TestingAndDebugging::ProhibitNoWarnings]
severity = 5

[Variables::ProhibitUnusedVariables]
severity = 5