summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 13:18:43 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 13:18:43 +0000
commit0bc794965f1bd37a1cd344661d29bcc081a0d5d0 (patch)
treeb6625661a9db00de8f0adce75adc679e29d9f2ad
parent672d3f3917b5f045b3a147c57f422fb275dfacb2 (diff)
downloadredmine-0bc794965f1bd37a1cd344661d29bcc081a0d5d0.tar.gz
redmine-0bc794965f1bd37a1cd344661d29bcc081a0d5d0.zip
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
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--lib/redmine/helpers/gantt.rb4
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