From 0bc794965f1bd37a1cd344661d29bcc081a0d5d0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 13:18:43 +0000 Subject: [PATCH] cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in lib/redmine/helpers/gantt.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19255 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - lib/redmine/helpers/gantt.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 692d8b62a..54c7eea67 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1178,7 +1178,6 @@ Style/LineEndConcatenation: # Configuration parameters: IgnoredMethods. Style/MethodCallWithoutArgsParentheses: Exclude: - - 'lib/redmine/helpers/gantt.rb' - 'lib/redmine/scm/adapters/cvs_adapter.rb' - 'lib/redmine/scm/adapters/filesystem_adapter.rb' diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index f9040d335..ad4b3c04f 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -675,7 +675,7 @@ module Redmine end def sort_issue_logic(issue) - julian_date = Date.new() + julian_date = Date.new ancesters_start_date = [] current_issue = issue begin @@ -938,7 +938,7 @@ module Redmine end def pdf_task(params, coords, markers, label, object) - cell_height_ratio = params[:pdf].get_cell_height_ratio() + cell_height_ratio = params[:pdf].get_cell_height_ratio params[:pdf].set_cell_height_ratio(0.1) height = 2 -- 2.39.5