aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/rubocops
diff options
context:
space:
mode:
authorGautham Goli2017-08-15 00:29:58 +0530
committerGautham Goli2017-08-15 00:29:58 +0530
commit5744cd9066bbdfc4db5332a202ddb962d5359ee5 (patch)
treebe0cea0c1d23e0d8a01daff0684a5f4dfaa1a63c /Library/Homebrew/rubocops
parentcfc423e1839442f605072db14aac42f6f5fa6174 (diff)
downloadbrew-5744cd9066bbdfc4db5332a202ddb962d5359ee5.tar.bz2
add test for inspecting version
Diffstat (limited to 'Library/Homebrew/rubocops')
-rw-r--r--Library/Homebrew/rubocops/lines_cop.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/rubocops/lines_cop.rb b/Library/Homebrew/rubocops/lines_cop.rb
index 0c465f9f5..324fe487a 100644
--- a/Library/Homebrew/rubocops/lines_cop.rb
+++ b/Library/Homebrew/rubocops/lines_cop.rb
@@ -157,11 +157,11 @@ module RuboCop
problem "Dependency #{string_content(dep)} should not use option #{string_content(option)}"
end
- # find_instance_method_call(body_node, :version, :==) do |m|
- # next unless parameters_passed?(m, "HEAD")
- # problem "Use 'build.head?' instead of inspecting 'version'"
- # end
- #
+ find_instance_method_call(body_node, :version, :==) do |m|
+ next unless parameters_passed?(m, "HEAD")
+ problem "Use 'build.head?' instead of inspecting 'version'"
+ end
+
# find_instance_method_call(body_node, :ENV, :fortran) do
# next if depends_on?(:fortran)
# problem "Use `depends_on :fortran` instead of `ENV.fortran`"