Module: Reek::Report::SingleLineLocationFormatter
- Defined in:
- lib/reek/report/location_formatter.rb
Overview
Formats the location of a warning as a combination of source file name and line number. In this format, it is not possible to show more than one line number, so the first number is displayed.
Class Method Summary collapse
Instance Method Summary collapse
- #format(warning) ⇒ Object private
Class Method Details
.format(warning) ⇒ Object
35 36 37 |
# File 'lib/reek/report/location_formatter.rb', line 35 def format(warning) "#{warning.source}:#{warning.lines.min}: " end |
Instance Method Details
#format(warning) ⇒ Object (private)
35 36 37 |
# File 'lib/reek/report/location_formatter.rb', line 35 def format(warning) "#{warning.source}:#{warning.lines.min}: " end |