From 3b26e3f54f6b53543382f9bc25981166df4dd255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Jourdois?= Date: Sun, 18 Jul 2010 16:05:03 +0200 Subject: [PATCH] We do not care about git files nor temporary files --- t/no-tabs.t | 3 +++ t/perl-syntax.t | 6 ++++++ 2 files changed, 9 insertions(+) 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$/ );