aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-10-22 13:32:46 +0100
committerMike McQuaid2016-10-22 13:32:46 +0100
commit1f963267b6bd415ce3024bb7860d5253ad8e0132 (patch)
tree894f15a5c863307b5fd2062330c6c3398fd36c72 /Library/Homebrew/cmd
parent5b421b93c9897dd5bae60c24bb937cccdafa5574 (diff)
downloadbrew-1f963267b6bd415ce3024bb7860d5253ad8e0132.tar.bz2
Update Rubocop style.
Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/missing.rb2
-rw-r--r--Library/Homebrew/cmd/style.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/missing.rb b/Library/Homebrew/cmd/missing.rb
index 525461108..148fe5bef 100644
--- a/Library/Homebrew/cmd/missing.rb
+++ b/Library/Homebrew/cmd/missing.rb
@@ -20,7 +20,7 @@ module Homebrew
Diagnostic.missing_deps(ff) do |name, missing|
print "#{name}: " if ff.size > 1
- puts (missing * " ").to_s
+ puts missing.join(" ")
end
end
end
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index 9538b890a..08eb111a5 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -49,7 +49,7 @@ module Homebrew
fix = options[:fix]
Homebrew.install_gem_setup_path! "rubocop", "0.43.0"
- args = %W[
+ args = %w[
--force-exclusion
]
args << "--auto-correct" if fix