]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/CommentAnnotation in lib/redmine/scm/adapters/cvs_ad...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 17:54:42 +0000 (17:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 17:54:42 +0000 (17:54 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18491 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 933a707443d502962c92d548095d2a158205401b..d738e93f845398aad6e384f2fa48363fcd2cd07d 100644 (file)
@@ -1180,13 +1180,6 @@ Style/ColonMethodCall:
     - 'test/unit/default_data_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
 
-# Cop supports --auto-correct.
-# Configuration parameters: Keywords.
-# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
-Style/CommentAnnotation:
-  Exclude:
-    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
-
 Style/CommentedKeyword:
   Exclude:
     - 'app/models/repository/cvs.rb'
index 86fc9e6f7c7e7a2d72ec63c558a7d800385d7dce..ba6134a188690ee570965b0f8eacd1bca30106f9 100644 (file)
@@ -248,10 +248,9 @@ module Redmine
                   author_utf8  = /author: ([^;]+)/.match(line_utf8)[1]
                   author       = scm_iconv(options[:log_encoding], 'UTF-8', author_utf8)
                   file_state   = /state: ([^;]+)/.match(line)[1]
-                  # TODO:
-                  #    linechanges only available in CVS....
-                  #    maybe a feature our SVN implementation.
-                  #    I'm sure, they are useful for stats or something else
+                  # TODO: linechanges only available in CVS....
+                  #       maybe a feature our SVN implementation.
+                  #       I'm sure, they are useful for stats or something else
                   #                linechanges =/lines: \+(\d+) -(\d+)/.match(line)
                   #                unless linechanges.nil?
                   #                  version.line_plus  = linechanges[1]