]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/scm/adapters/subversion_ad...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 21 Nov 2019 10:56:24 +0000 (10:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 21 Nov 2019 10:56:24 +0000 (10:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19129 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/scm/adapters/subversion_adapter.rb

index 960644b6a2268a1c8368a17a09a9b64bc6288eba..375d60c1cea22cc3d893c6cbf82ffe3088532116 100644 (file)
@@ -13,7 +13,6 @@ Layout/AlignArguments:
   Exclude:
     - 'config/application.rb'
     - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
-    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
     - 'test/functional/journals_controller_test.rb'
     - 'test/functional/my_controller_test.rb'
     - 'test/functional/roles_controller_test.rb'
index 07f9af48ed0a4244b4786b4dd597f34abf126779..a395df4aeee77ab3849e183ad72dcacc9d770ee8 100644 (file)
@@ -228,12 +228,14 @@ module Redmine
             io.each_line do |line|
               next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$}
               rev = $1
-              blame.add_line($3.rstrip,
-                   Revision.new(
-                      :identifier => rev,
-                      :revision   => rev,
-                      :author     => $2.strip
-                      ))
+              blame.add_line(
+                $3.rstrip,
+                Revision.new(
+                  :identifier => rev,
+                  :revision   => rev,
+                  :author     => $2.strip
+                )
+              )
             end
           end
           return nil if $? && $?.exitstatus != 0