aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/rubocops
diff options
context:
space:
mode:
authorGautham Goli2017-08-14 15:41:03 +0530
committerGautham Goli2017-08-14 15:41:03 +0530
commitaf5cd1a1da0e1b87696ae72b8a5f1c174e83e94e (patch)
tree0b6af3b2a33af79d91f850abdadf07279e768494 /Library/Homebrew/rubocops
parent76f4eccdceb5b3fb4e88b56e077234a6a3e56b08 (diff)
downloadbrew-af5cd1a1da0e1b87696ae72b8a5f1c174e83e94e.tar.bz2
add tests for man+'man[1-8]'
Diffstat (limited to 'Library/Homebrew/rubocops')
-rw-r--r--Library/Homebrew/rubocops/lines_cop.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/rubocops/lines_cop.rb b/Library/Homebrew/rubocops/lines_cop.rb
index 6a6f34821..cf1ac68c3 100644
--- a/Library/Homebrew/rubocops/lines_cop.rb
+++ b/Library/Homebrew/rubocops/lines_cop.rb
@@ -93,12 +93,12 @@ module RuboCop
problem "Use build instead of ARGV to check options"
end
end
- #
- # find_instance_method_call(body_node, :man, :+) do |m|
- # next unless match = regex_match_group(parameters(m).first, %r{man[1-8]})
- # problem "\"#{m.source}\" should be \"#{match[1]}\""
- # end
- #
+
+ find_instance_method_call(body_node, :man, :+) do |m|
+ next unless match = regex_match_group(parameters(m).first, %r{man[1-8]})
+ problem "\"#{m.source}\" should be \"#{match[0]}\""
+ end
+
# # Avoid hard-coding compilers
# find_every_method_call_by_name(body_node, :system).each do |m|
# param = parameters(m).first