lib/git/lint/reporters/lines/sentence.rb in git-lint-5.0.0 vs lib/git/lint/reporters/lines/sentence.rb in git-lint-5.1.0
- old
+ new
@@ -1,13 +1,15 @@
# frozen_string_literal: true
+require "core"
+
module Git
module Lint
module Reporters
module Lines
# Reports sentence details.
class Sentence
- def initialize data = {}
+ def initialize data = Core::EMPTY_HASH
@data = data
end
def to_s = %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)