]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/models/repository.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 13:58:30 +0000 (13:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 13:58:30 +0000 (13:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18485 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/repository.rb

index 2721462007dcec06512f0c6194a9f98eb564dcbc..cdfac21c868457358ccbc567e58d6753393fa41d 100644 (file)
@@ -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'
index 64e5588badaf1394663350ee72aff706722fef95..93c180a53253b7f79f5fbb7f5c695d5f1df46e56 100644 (file)
@@ -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")