File: perlcriticrc

package info (click to toggle)
libnet-netmask-perl 2.0002-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 320 kB
  • sloc: perl: 2,252; makefile: 2; sh: 1
file content (38 lines) | stat: -rw-r--r-- 1,165 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
severity=4
verbose=8
exclude=InputOutput::RequireBriefOpen Subroutines::ProhibitSubroutinePrototypes Subroutines::RequireArgUnpacking

# Classes with metod signatures
[-Subroutines::ProhibitSubroutinePrototypes]

# We turn on strictures in our bootstrap module we almost always use
[-TestingAndDebugging::RequireUseStrict]
[-TestingAndDebugging::RequireUseWarnings]

# When we modify $_, we know what we're doing.
[-ControlStructures::ProhibitMutatingListFunctions]

# It's okay to do "no warnings 'foo'" if needed - you are expected to
# know what you're doing if you do that!
[TestingAndDebugging::ProhibitNoWarnings]
allow_with_category_restriction = 1

# If I use <STDIN>, I don't want <>!
[-InputOutput::ProhibitExplicitStdin]

# This is useful in map to map an array to a hash ( map { $_, $_ } ... )
[ValuesAndExpressions::ProhibitCommaSeparatedStatements]
allow_last_statement_to_be_comma_separated_in_map_and_grep = 1

# We don't want to require these
[-ErrorHandling::RequireUseOfExceptions]

# I want to know about redefined variables
[Variables::ProhibitReusedNames]
severity = 4

# Testing for found words
[BadStrings]
words = Joel Maslak
severity = 4