Fix Style/Semicolon.
This commit is contained in:
parent
0406f918a6
commit
4861ee6c2d
@ -281,13 +281,6 @@ Style/RegexpLiteral:
|
||||
- 'Homebrew/keg.rb'
|
||||
- 'Homebrew/version.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowAsExpressionSeparator.
|
||||
Style/Semicolon:
|
||||
Exclude:
|
||||
- 'Homebrew/descriptions.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: SupportedStyles.
|
||||
|
||||
@ -136,6 +136,6 @@ class Descriptions
|
||||
|
||||
def short_name_counts
|
||||
@short_name_counts ||=
|
||||
short_names.values.each_with_object(Hash.new(0)) { |name, counts| counts[name] += 1; counts }
|
||||
short_names.values.each_with_object(Hash.new(0)) { |name, counts| counts[name] += 1 }
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user