From c621dae80af481e5f1c334b8ac2f686f8e9d1fd1 Mon Sep 17 00:00:00 2001 From: Aleksei Date: Tue, 17 Jul 2018 08:40:31 +0300 Subject: [PATCH] Fix rubocop's offenses --- 2355/2/find_obscenity.rb | 1 - 2355/2/top_bad_words.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/2355/2/find_obscenity.rb b/2355/2/find_obscenity.rb index ef12e35ab..4ce5f0520 100644 --- a/2355/2/find_obscenity.rb +++ b/2355/2/find_obscenity.rb @@ -56,4 +56,3 @@ def check_battles_for_obscenity # rubocop:enable Metrics/AbcSize # rubocop:enable Style/IfUnlessModifier # rubocop:enable Lint/ImplicitStringConcatenation - diff --git a/2355/2/top_bad_words.rb b/2355/2/top_bad_words.rb index 68a3e9872..25cf883f0 100644 --- a/2355/2/top_bad_words.rb +++ b/2355/2/top_bad_words.rb @@ -1,6 +1,5 @@ require './find_obscenity.rb' -# rubocop:disable Lint/UnusedBlockArgument # rubocop:disable Metrics/AbcSize # This class is needed for 1st level of Task 2 # This class smells of :reek:Attribute @@ -46,5 +45,4 @@ def average_bad_words_in_battle(battler) top_obscenity[battler] / (Dir[File.join("./rap-battles/#{battler}/", '**', '*')].count { |file| File.file?(file) }) end end -# rubocop:enable Lint/UnusedBlockArgument # rubocop:enable Metrics/AbcSize