[xen-tools-dev] [PATCH v2 06/13] We do not care about git files nor temporary files
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 18 22:04:16 CEST 2010
From: Stéphane Jourdois <stephane at jourdois.fr>
---
t/no-tabs.t | 3 +++
t/perl-syntax.t | 6 ++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/t/no-tabs.t b/t/no-tabs.t
index bcc881d..2037fbc 100755
--- a/t/no-tabs.t
+++ b/t/no-tabs.t
@@ -38,6 +38,9 @@ sub checkFile
# Nor about Makefiles
return if ( $file =~ /\/Makefile$/ );
+ # Nor about temporary files
+ return if ( $file =~ m{/\.[^/]+$} );
+
# Nor about files which start with ./debian/
return if ( $file =~ /^\.\/debian\// );
diff --git a/t/perl-syntax.t b/t/perl-syntax.t
index cef0284..0cd9406 100755
--- a/t/perl-syntax.t
+++ b/t/perl-syntax.t
@@ -41,6 +41,12 @@ sub checkFile
# Nor about Makefiles
return if ( $file =~ /\/Makefile$/ );
+ # Nor about git files
+ return if ( $file =~ /^\.\/\.git\// );
+
+ # Nor about temporary files
+ return if ( $file =~ m{/\.[^/]+$} );
+
# `modules.sh` is a false positive.
return if ( $file =~ /modules.sh$/ );
--
1.7.1.1
More information about the xen-tools-dev
mailing list