1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-04 22:59:47 +00:00

code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/controllers/repositories_controller.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18473 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-09-15 15:08:49 +00:00
parent 881c99f162
commit 217b091143
2 changed files with 2 additions and 3 deletions

View 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'

View 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