summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan2018-06-12 18:54:43 +0000
committerAndrew Dunstan2018-06-12 18:54:43 +0000
commite3eb8be77ef82ccc8f87c515f96d01bf7c726ca8 (patch)
tree4857caadba8b97385fe3e64153bb0468a2914cb2
parenta54e1f1587793b5bf926630ec9ce142e4578d7a0 (diff)
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.
-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 e10466a390..d7da9fe859 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/'
}