Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
blob: 49ac9ee52b5cd5a87cbd974c80a319f65c4d9865 (plain)
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
######################################################################
#
# src/tools/perlcheck/perlcriticrc
#
# config  file for perlcritic for Postgres project
#
#####################################################################

severity = 5

theme = core

# print the policy name as well as the normal output
verbose = %f: %m at line %l, column %c.  %e.  ([%p] Severity: %s)\n

# Note: for policy descriptions see https://metacpan.org/dist/Perl-Critic


# allow octal constants with leading zeros
[-ValuesAndExpressions::ProhibitLeadingZeros]

# insist on use of the warnings pragma
[TestingAndDebugging::RequireUseWarnings]
severity = 5

# forbid grep and map in void context
[BuiltinFunctions::ProhibitVoidGrep]
severity = 5

[BuiltinFunctions::ProhibitVoidMap]
severity = 5