1
0
mirror of synced 2026-04-26 20:36:26 +00:00

Fix no-tabs.t to ignore .git as well as Makefiles

This commit is contained in:
Axel Beckert
2010-04-15 02:17:18 +02:00
parent fb1de328c9
commit e9b9b02869

View File

@@ -35,11 +35,14 @@ sub checkFile
# Nor about backup files.
return if ( $file =~ /~$/ );
# Nor about Makefiles
return if ( $file =~ /\/Makefile$/ );
# Nor about files which start with ./debian/
return if ( $file =~ /^\.\/debian\// );
# Finally mercurial files are fine.
return if ( $file =~ /\.hg\// );
# Finally mercurial and git files are fine.
return if ( $file =~ /\.(hg|git)\// );
# See if it is a shell/perl file.
my $isShell = 0;
my $isPerl = 0;