summaryrefslogtreecommitdiffstats
path: root/src/tools/perlcheck/perlcriticrc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/perlcheck/perlcriticrc')
-rw-r--r--src/tools/perlcheck/perlcriticrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tools/perlcheck/perlcriticrc b/src/tools/perlcheck/perlcriticrc
new file mode 100644
index 0000000..e230111
--- /dev/null
+++ b/src/tools/perlcheck/perlcriticrc
@@ -0,0 +1,24 @@
+######################################################################
+#
+# 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/release/Perl-Critic
+
+
+# allow octal constants with leading zeros
+[-ValuesAndExpressions::ProhibitLeadingZeros]
+
+# insist on use of the warnings pragma
+[TestingAndDebugging::RequireUseWarnings]
+severity = 5