Merge pull request #2509 from scpeters/audit_message_swap

audit: fix swapped audit messages
This commit is contained in:
Mike McQuaid 2017-04-20 08:24:38 +01:00 committed by GitHub
commit 29d750df71

View File

@ -1100,11 +1100,11 @@ class FormulaAuditor
end
if line =~ /(not\s|!)\s*build\.with?\?/
problem "Don't negate 'build.without?': use 'build.with?'"
problem "Don't negate 'build.with?': use 'build.without?'"
end
if line =~ /(not\s|!)\s*build\.without?\?/
problem "Don't negate 'build.with?': use 'build.without?'"
problem "Don't negate 'build.without?': use 'build.with?'"
end
if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/