aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-11-03 17:48:09 +0000
committerGitHub2017-11-03 17:48:09 +0000
commit872bd4f703f3ff06a64ab7625f62f41cda8822b7 (patch)
tree7d2a3df7b6b2c18470c60f46781015d848a9ea07 /Library/Homebrew/test
parentc6f40d58642149b0ccbe1282554c6b05a744a3dc (diff)
parentf648dd03ff52fdf3d1ea7a6c7f64bc314e9a4d01 (diff)
downloadbrew-872bd4f703f3ff06a64ab7625f62f41cda8822b7.tar.bz2
Merge pull request #3395 from GauthamGoli/parameters-audit-regex-fix
lines_cop: Update regex patterns to prevent false positives
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/rubocops/lines_cop_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/rubocops/lines_cop_spec.rb b/Library/Homebrew/test/rubocops/lines_cop_spec.rb
index e65eff1fc..de79fd7de 100644
--- a/Library/Homebrew/test/rubocops/lines_cop_spec.rb
+++ b/Library/Homebrew/test/rubocops/lines_cop_spec.rb
@@ -762,8 +762,8 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do
class Foo < Formula
desc "foo"
url 'http://example.com/foo-1.0.tgz'
- depends_on "foo" if build.with? "with-foo"
- ^^^^^^^^^^^^^^^^ Replace depends_on "foo" if build.with? "with-foo" with depends_on "foo" => :optional
+ depends_on "foo" if build.with? "foo"
+ ^^^^^^^^^^^^^^^^ Replace depends_on "foo" if build.with? "foo" with depends_on "foo" => :optional
end
RUBY
end