audit: allow assert !.*.include?.

Came up on Homebrew/homebrew#34573.
This commit is contained in:
Mike McQuaid 2015-08-09 09:32:40 +01:00
parent 7a13f82297
commit 3518cda792

View File

@ -795,7 +795,7 @@ class FormulaAuditor
problem "Use the `#{method}` Ruby method instead of `system #{system}`"
end
if line =~ /assert .*\.include?/
if line =~ /assert [^!]+\.include?/
problem "Use `assert_match` instead of `assert ...include?`"
end