aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-21 14:36:20 +0200
committerMarkus Reiter2016-09-23 15:30:07 +0200
commit4861ee6c2d5bdda8ae155a1fb1f4c66ff562732d (patch)
tree471e3d19f7c31165b415a82660da0c08604efac4 /Library
parent0406f918a67c75559f926f6372a6d8aed5b18d1e (diff)
downloadbrew-4861ee6c2d5bdda8ae155a1fb1f4c66ff562732d.tar.bz2
Fix Style/Semicolon.
Diffstat (limited to 'Library')
-rw-r--r--Library/.rubocop_todo.yml7
-rw-r--r--Library/Homebrew/descriptions.rb2
2 files changed, 1 insertions, 8 deletions
diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml
index d044796fe..58eb67657 100644
--- a/Library/.rubocop_todo.yml
+++ b/Library/.rubocop_todo.yml
@@ -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.
diff --git a/Library/Homebrew/descriptions.rb b/Library/Homebrew/descriptions.rb
index 24e342474..0ef4316d3 100644
--- a/Library/Homebrew/descriptions.rb
+++ b/Library/Homebrew/descriptions.rb
@@ -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