]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in lib/redmine/helpers...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 13:18:43 +0000 (13:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 13:18:43 +0000 (13:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19255 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/helpers/gantt.rb

index 692d8b62a80339034056821221bdf1446b7108ff..54c7eea6763be22f06cdd28eda7e6166c1ec4b66 100644 (file)
@@ -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'
 
index f9040d33555539347f987e10073c8b920bd0c84c..ad4b3c04f4793d5134a966ba85c9d7cfdd7952c3 100644 (file)
@@ -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