blob: 4739e9f4f1810bbecceb391ced2ff350ac6a74e5 (
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
32
33
34
35
36
37
38
39
|
######################################################################
#
# 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
# Require checking return value of system calls. The excluded ones
# are currently consistently checked, but more checking could be
# added.
[InputOutput::RequireCheckedSyscalls]
severity = 5
functions = :builtins
exclude_functions = binmode chdir close closedir kill mkdir print rmdir setsockopt sleep truncate umask unlink waitpid
|