From 4c2224814369f6399c90efed0f993676b7e8c537 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 15 Oct 2019 05:07:29 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs in app/models/version.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18675 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 6 ------ app/models/version.rb | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1aae23a91..96fd25b4a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -123,12 +123,6 @@ Layout/ElseAlignment: Layout/EmptyLineAfterGuardClause: Enabled: false -# Cop supports --auto-correct. -# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines. -Layout/EmptyLineBetweenDefs: - Exclude: - - 'app/models/version.rb' - # Cop supports --auto-correct. Layout/EmptyLines: Exclude: diff --git a/app/models/version.rb b/app/models/version.rb index b5765f4b8..76226906a 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -23,7 +23,7 @@ module FixedIssuesExtension def estimated_hours @estimated_hours ||= sum(:estimated_hours).to_f end - # + # Returns the total amount of open issues for this version. def open_count load_counts