Debian Codegraph @

src/tools/perlcheck/perlcriticrc

raw
1 ######################################################################
2 #
3 # src/tools/perlcheck/perlcriticrc
4 #
5 # config file for perlcritic for Postgres project
6 #
7 #####################################################################
8
9 severity = 5
10
11 theme = core
12
13 # print the policy name as well as the normal output
14 verbose = %f: %m at line %l, column %c. %e. ([%p] Severity: %s)\n
15
16 # Note: for policy descriptions see https://metacpan.org/dist/Perl-Critic
17
18
19 # allow octal constants with leading zeros
20 [-ValuesAndExpressions::ProhibitLeadingZeros]
21
22 # insist on use of the warnings pragma
23 [TestingAndDebugging::RequireUseWarnings]
24 severity = 5
25
26 # forbid grep and map in void context
27 [BuiltinFunctions::ProhibitVoidGrep]
28 severity = 5
29
30 [BuiltinFunctions::ProhibitVoidMap]
31 severity = 5
32
33 # Require checking return value of system calls. The excluded ones
34 # are currently consistently checked, but more checking could be
35 # added.
36 [InputOutput::RequireCheckedSyscalls]
37 severity = 5
38 functions = :builtins
39 exclude_functions = binmode chdir close closedir kill mkdir print rmdir setsockopt sleep truncate umask unlink waitpid