diff options
| author | Mike McQuaid | 2016-10-18 08:38:39 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-18 08:38:39 +0100 |
| commit | 2da012d84d81dad61b7a5e071c9f827c822a6fed (patch) | |
| tree | c21acc2ecf82147d29e1abf8d1c97ff71fc8aa83 /Library | |
| parent | 1fd7d525058cb9006ab99d5597d39bac2d7218ae (diff) | |
| parent | 56ae868cf121eaece27dea73a3716f813069a7e3 (diff) | |
| download | brew-2da012d84d81dad61b7a5e071c9f827c822a6fed.tar.bz2 | |
Merge pull request #1311 from MikeMcQuaid/audit-no-trailing-whitespace
audit: don't complain about trailing whitespace.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index c2a8fb450..9a15c6de7 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -736,7 +736,7 @@ class FormulaAuditor problem "require \"language/go\" is unnecessary unless using `go_resource`s" end - def audit_line(line, lineno) + def audit_line(line, _lineno) if line =~ /<(Formula|AmazonWebServicesFormula|ScriptFileFormula|GithubGistFormula)/ problem "Use a space in class inheritance: class Foo < #{$1}" end @@ -817,9 +817,6 @@ class FormulaAuditor # Commented-out depends_on problem "Commented-out dep #{$1}" if line =~ /#\s*depends_on\s+(.+)\s*$/ - # No trailing whitespace, please - problem "#{lineno}: Trailing whitespace was found" if line =~ /[\t ]+$/ - if line =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/ problem "Use \"if build.#{$1.downcase}?\" instead" end |
