mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix Style/SingleLineBlockParams.
This commit is contained in:
parent
d7a312f6cf
commit
0406f918a6
@ -288,13 +288,6 @@ Style/Semicolon:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'Homebrew/descriptions.rb'
|
- '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
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: SupportedStyles.
|
# Configuration parameters: SupportedStyles.
|
||||||
|
@ -78,8 +78,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def inject_file_list(list, str)
|
def inject_file_list(list, string)
|
||||||
list.inject(str) { |s, f| s << " #{f}\n" }
|
list.inject(string) { |a, e| a << " #{e}\n" }
|
||||||
end
|
end
|
||||||
############# END HELPERS
|
############# END HELPERS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user