aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/rubocops
diff options
context:
space:
mode:
authorGautham Goli2017-10-29 23:40:04 +0530
committerGautham Goli2017-10-29 23:40:04 +0530
commitf648dd03ff52fdf3d1ea7a6c7f64bc314e9a4d01 (patch)
tree6965aa1da0c540a775ed744ee1448f966e4f39d3 /Library/Homebrew/test/rubocops
parent7caca570736a6232512328992b398270dbbf3f4f (diff)
downloadbrew-f648dd03ff52fdf3d1ea7a6c7f64bc314e9a4d01.tar.bz2
lines_cop: Update regex patterns to prevent false positives
Diffstat (limited to 'Library/Homebrew/test/rubocops')
-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