]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/controllers/repositories...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 15 Sep 2019 15:08:49 +0000 (15:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 15 Sep 2019 15:08:49 +0000 (15:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18473 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/controllers/repositories_controller.rb

index dc9190699fd1435adf59c053e4baed89a332b4ab..3db3b51a35ab0af0e1f387663d0cf34415754676 100644 (file)
@@ -312,7 +312,6 @@ Layout/IndentationWidth:
 # Configuration parameters: AllowDoxygenCommentStyle.
 Layout/LeadingCommentSpace:
   Exclude:
-    - 'app/controllers/repositories_controller.rb'
     - 'app/models/repository.rb'
     - 'lib/diff.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
index 1ebfb11be62fe6673941f0739b899d5fc1c82d62..6994eb2946e2a7407b3b75ddf1db76279d4b114a 100644 (file)
@@ -379,7 +379,7 @@ class RepositoriesController < ApplicationController
   end
 
   def graph_commits_per_author(repository)
-    #data
+    # data
     stats = repository.stats_by_author
     fields, commits_data, changes_data = [], [], []
     stats.each do |name, hsh|
@@ -388,7 +388,7 @@ class RepositoriesController < ApplicationController
       changes_data << hsh[:changes_count]
     end
 
-    #expand to 10 values if needed
+    # expand to 10 values if needed
     fields = fields + [""]*(10 - fields.length) if fields.length<10
     commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10
     changes_data = changes_data + [0]*(10 - changes_data.length) if changes_data.length<10