From 7fb47e4b5e7ebd7124304214663fd02a7ce1f6a7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 20 Sep 2019 13:58:30 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/models/repository.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18485 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - app/models/repository.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 272146200..cdfac21c8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -310,7 +310,6 @@ Layout/IndentationWidth: # Configuration parameters: AllowDoxygenCommentStyle. Layout/LeadingCommentSpace: Exclude: - - 'app/models/repository.rb' - 'lib/diff.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - 'test/integration/api_test/issues_test.rb' diff --git a/app/models/repository.rb b/app/models/repository.rb index 64e5588ba..93c180a53 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -423,8 +423,8 @@ class Repository < ActiveRecord::Base def stats_by_author commits = Changeset.where("repository_id = ?", id).select("committer, user_id, count(*) as count").group("committer, user_id") - #TODO: restore ordering ; this line probably never worked - #commits.to_a.sort! {|x, y| x.last <=> y.last} + # TODO: restore ordering ; this line probably never worked + # commits.to_a.sort! {|x, y| x.last <=> y.last} changes = Change.joins(:changeset).where("#{Changeset.table_name}.repository_id = ?", id).select("committer, user_id, count(*) as count").group("committer, user_id") -- 2.39.5