diff options
| author | Markus Reiter | 2016-09-21 14:36:11 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:07 +0200 |
| commit | 0406f918a67c75559f926f6372a6d8aed5b18d1e (patch) | |
| tree | b07f578ce804f4d92a138cd88f934bb940326bb8 /Library | |
| parent | d7a312f6cf1a17e36891f4533ec48e53c5276e3d (diff) | |
| download | brew-0406f918a67c75559f926f6372a6d8aed5b18d1e.tar.bz2 | |
Fix Style/SingleLineBlockParams.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/.rubocop_todo.yml | 7 | ||||
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 4 |
2 files changed, 2 insertions, 9 deletions
diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml index 04a2cdd6e..d044796fe 100644 --- a/Library/.rubocop_todo.yml +++ b/Library/.rubocop_todo.yml @@ -288,13 +288,6 @@ Style/Semicolon: Exclude: - 'Homebrew/descriptions.rb' -# Offense count: 1 -# Configuration parameters: Methods. -# Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]} -Style/SingleLineBlockParams: - Exclude: - - 'Homebrew/diagnostic.rb' - # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles. diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 8f158ddd8..62e916ce1 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -78,8 +78,8 @@ module Homebrew end end - def inject_file_list(list, str) - list.inject(str) { |s, f| s << " #{f}\n" } + def inject_file_list(list, string) + list.inject(string) { |a, e| a << " #{e}\n" } end ############# END HELPERS |
