From 4861ee6c2d5bdda8ae155a1fb1f4c66ff562732d Mon Sep 17 00:00:00 2001 From: Markus Reiter <me@reitermark.us> Date: Wed, 21 Sep 2016 14:36:20 +0200 Subject: [PATCH] Fix Style/Semicolon. --- Library/.rubocop_todo.yml | 7 ------- Library/Homebrew/descriptions.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml index d044796fe8..58eb67657a 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 24e3424744..0ef4316d34 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 -- GitLab