Skip to content
Snippets Groups Projects
Commit 2da012d8 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1311 from MikeMcQuaid/audit-no-trailing-whitespace

audit: don't complain about trailing whitespace.
parents 1fd7d525 56ae868c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment