Skip to content

Commit 63c63b1

Browse files
committed
Fix CoffeeLint for modified lines
Line number should be `Fixnum` so that overcommit can accurately determine if it's modified line or not. Closes sds#364
1 parent 57afb4f commit 63c63b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/overcommit/hook/pre_commit/coffee_lint.rb

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def run
2323

2424
def parse_messages(output)
2525
output.scan(MESSAGE_REGEX).map do |file, line, type, msg|
26+
line = line.to_i
2627
type = MESSAGE_TYPE_CATEGORIZER.call(type)
2728
text = "#{file}:#{line}:#{type} #{msg}"
2829
Overcommit::Hook::Message.new(type, file, line, text)

0 commit comments

Comments
 (0)