From 3f64c67c09582ae8bad54511b86ecd1ea701c8a9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 16 Oct 2019 13:00:52 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/LeadingCommentSpace in lib/diff.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18691 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 6 ------ lib/diff.rb | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 32de25025..0ac5d787c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -244,12 +244,6 @@ Layout/IndentationConsistency: Layout/IndentationWidth: Enabled: false -# Cop supports --auto-correct. -# Configuration parameters: AllowDoxygenCommentStyle. -Layout/LeadingCommentSpace: - Exclude: - - 'lib/diff.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: symmetrical, new_line, same_line diff --git a/lib/diff.rb b/lib/diff.rb index 43ecb7397..5c6eb4380 100644 --- a/lib/diff.rb +++ b/lib/diff.rb @@ -190,10 +190,10 @@ module Diffable end self[low] = value - # $stderr << "replace #{value} : 0/#{low}/#{init_high} (#{steps} steps) (#{init_high-low} off )\n" - # $stderr.puts self.inspect - #gets - #p length - low + # $stderr << "replace #{value} : 0/#{low}/#{init_high} (#{steps} steps) (#{init_high-low} off )\n" + # $stderr.puts self.inspect + # gets + # p length - low return low end