From 0dbf06bbc85b8f1f04e4d6295044bcf58c1db47d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 18 Oct 2011 10:00:45 -0700 Subject: audit: complain more about tabs --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 1a57ab80a..5a4a5e05c 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -102,9 +102,9 @@ def audit_formula_text name, text problems << " * Use separate make calls." end - if text =~ /^\t/ + if text =~ /^[ ]*\t/ problems << " * Use spaces instead of tabs for indentation" - end if strict? + end # Formula depends_on gfortran if text =~ /^\s*depends_on\s*(\'|\")gfortran(\'|\").*/ -- cgit v1.2.3