Skip to content

Commit

Permalink
Occurrence: Changes inspect format
Browse files Browse the repository at this point in the history
- Write `{path}:{line_number}` in short format, rest with keys.
  • Loading branch information
davidwessman authored and glebm committed Mar 24, 2022
1 parent 3575d8f commit 487a0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/scanners/results/occurrence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initialize(path:, pos:, line_num:, line_pos:, line:, raw_key: nil, default_a
# rubocop:enable Metrics/ParameterLists

def inspect
"Occurrence(path: #{@path}, line_num: #{@line_num}, line_pos: #{@line_pos}, pos: #{@pos}, raw_key: #{@raw_key}, default_arg: #{@default_arg}, line: #{@line})"
"Occurrence(#{@path}:#{@line_num}, line_pos: #{@line_pos}, pos: #{@pos}, raw_key: #{@raw_key}, default_arg: #{@default_arg}, line: #{@line})"
end

def ==(other)
Expand Down

0 comments on commit 487a0f3

Please sign in to comment.