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:
19
src/tools/perlcheck/perlcriticrc
Normal file
19
src/tools/perlcheck/perlcriticrc
Normal 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
|
||||
|
20
src/tools/perlcheck/pgperlcritic
Executable file
20
src/tools/perlcheck/pgperlcritic
Executable 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
|
Reference in New Issue
Block a user