1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00

Move perlcritic files to new perlcheck directory

This commit is contained in:
Andrew Dunstan
2018-06-11 14:54:28 -04:00
parent af616ce483
commit 85dd744a70
2 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
######################################################################
#
# src/tools/perlcheck/perlcriticrc
#
# config file for perlcritic for Postgres project
#
#####################################################################
severity = 5
theme = core
# allow octal constants with leading zeros
[-ValuesAndExpressions::ProhibitLeadingZeros]
# for now raise severity of this to level 5
[Subroutines::RequireFinalReturn]
severity = 5

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# src/tools/perlcheck/pgperlcritic
test -f src/tools/perlcheck/perlcriticrc || {
echo could not find src/tools/perlcheck/perlcriticrc
exit 1
}
set -e
# set this to override default perlcritic program:
PERLCRITIC=${PERLCRITIC:-perlcritic}
. src/tools/perlcheck/find_perl_files
find_perl_files | xargs $PERLCRITIC \
--quiet \
--program-extensions .pl \
--profile=src/tools/perlcheck/perlcriticrc