Skip to content

Commit 2d19506

Browse files
author
Shane da Silva
committed
Remove debug puts statements
These snuck in accidentally. Change-Id: I6ff366b52ef39d9c4dd7fd3deb0ce9ae05efe002 Reviewed-on: http://gerrit.causes.com/35899 Tested-by: jenkins <jenkins@causes.com> Reviewed-by: Shane da Silva <shane@causes.com>
1 parent f002d86 commit 2d19506

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/overcommit/hook/pre_commit/rubocop.rb

-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ module Overcommit::Hook::PreCommit
22
# Runs `rubocop` against any modified Ruby files.
33
class Rubocop < Base
44
def run
5-
puts "IN_PATH? #{in_path?('rubocop')}"
65
unless in_path?('rubocop')
76
return :warn, 'Rubocop not installed -- run `gem install rubocop`'
87
end
98

109
result = command("rubocop --format=emacs #{applicable_files.join(' ')} 2>&1")
11-
puts "RESULT: #{result.success?}"
1210
return :good if result.success?
1311

1412
# Keep lines from the output for files that we actually modified
@@ -20,8 +18,6 @@ def run
2018
modified_lines(file).include?(line.to_i)
2119
end
2220

23-
puts "ERRORS: #{error_lines.join("\n")}"
24-
2521
return :bad, error_lines.join("\n") unless error_lines.empty?
2622
return :warn, "Modified files have lints (on lines you didn't modify)\n" <<
2723
warning_lines.join("\n")

0 commit comments

Comments
 (0)