aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-05-03 12:58:08 +0100
committerMike McQuaid2017-05-03 12:58:08 +0100
commit6a15cea0b447d8cdf5e8e9f5d99f5bdbcec405a6 (patch)
tree438a6984b170b65ab7831005c9fdae01757f7115 /Library/Homebrew/cmd
parent56413f6f6d0463abbac9f2b3fd48efacc06425e3 (diff)
downloadbrew-6a15cea0b447d8cdf5e8e9f5d99f5bdbcec405a6.tar.bz2
style: fix audit --online
This passed a symbol to `:except_cops` which caused a :boom:.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/style.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index b805c9695..cf41d91ee 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -75,7 +75,7 @@ module Homebrew
args << "--auto-correct" if fix
if options[:except_cops]
- options[:except_cops].map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop, "") }
+ options[:except_cops].map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop.to_s, "") }
cops_to_exclude = options[:except_cops].select do |cop|
RuboCop::Cop::Cop.registry.names.include?(cop) ||
RuboCop::Cop::Cop.registry.departments.include?(cop.to_sym)
@@ -83,7 +83,7 @@ module Homebrew
args << "--except" << cops_to_exclude.join(",") unless cops_to_exclude.empty?
elsif options[:only_cops]
- options[:only_cops].map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop, "") }
+ options[:only_cops].map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop.to_s, "") }
cops_to_include = options[:only_cops].select do |cop|
RuboCop::Cop::Cop.registry.names.include?(cop) ||
RuboCop::Cop::Cop.registry.departments.include?(cop.to_sym)