aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2018-06-12 14:54:43 -0400
committerAndrew Dunstan <andrew@dunslane.net>2018-06-12 14:54:43 -0400
commite3eb8be77ef82ccc8f87c515f96d01bf7c726ca8 (patch)
tree4857caadba8b97385fe3e64153bb0468a2914cb2 /src
parenta54e1f1587793b5bf926630ec9ce142e4578d7a0 (diff)
downloadpostgresql-e3eb8be77ef82ccc8f87c515f96d01bf7c726ca8.tar.gz
postgresql-e3eb8be77ef82ccc8f87c515f96d01bf7c726ca8.zip
Exclude files in .git from list of perl files
The .git directory might contain perl files, as hooks, for example. Since we have no control over these they should be excluded from things like our perlcritic checks. Per offline report from Mike Blackwell.
Diffstat (limited to 'src')
-rw-r--r--src/tools/perlcheck/find_perl_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/perlcheck/find_perl_files b/src/tools/perlcheck/find_perl_files
index e10466a3905..d7da9fe8592 100644
--- a/src/tools/perlcheck/find_perl_files
+++ b/src/tools/perlcheck/find_perl_files
@@ -11,5 +11,5 @@ find_perl_files () {
find . -type f -perm -100 -exec file {} \; -print |
egrep -i ':.*perl[0-9]*\>' |
cut -d: -f1
- } | sort -u
+ } | sort -u | grep -v '^\./\.git/'
}