From 188c560edce19ce4f9e51c7920cb33be2ffeb98f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 20 Sep 2019 17:54:42 +0000 Subject: [PATCH] code cleanup: rubocop: fix Style/CommentAnnotation in lib/redmine/scm/adapters/cvs_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18491 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 7 ------- lib/redmine/scm/adapters/cvs_adapter.rb | 7 +++---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 933a70744..d738e93f8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 86fc9e6f7..ba6134a18 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -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] -- 2.39.5