aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-08-09 09:32:40 +0100
committerMike McQuaid2015-08-09 09:33:33 +0100
commit3518cda7928d1603af130823854aaa3ed7af4118 (patch)
tree5860b8f76e639f91b03bd35d08f8b8d03512b930 /Library/Homebrew/cmd/audit.rb
parent7a13f822976bc5e168a17241f8b4426fa062fa50 (diff)
downloadbrew-3518cda7928d1603af130823854aaa3ed7af4118.tar.bz2
audit: allow assert `!.*.include?`.
Came up on Homebrew/homebrew#34573.
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index afc279c71..7b7d25169 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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