Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e3eb8be

Browse files
committed
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.
1 parent a54e1f1 commit e3eb8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/perlcheck/find_perl_files

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ find_perl_files () {
1111
find . -type f -perm -100 -exec file {} \; -print |
1212
egrep -i ':.*perl[0-9]*\>' |
1313
cut -d: -f1
14-
} | sort -u
14+
} | sort -u | grep -v '^\./\.git/'
1515
}

0 commit comments

Comments
 (0)