lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.2.12 vs lib/cc/analyzer/formatters/plain_text_formatter.rb in codeclimate-0.3.0

- old
+ new

@@ -33,10 +33,11 @@ issues_by_path.each do |path, file_issues| puts colorize("== #{path} (#{pluralize(file_issues.size, "issue")}) ==", :yellow) IssueSorter.new(file_issues).by_location.each do |issue| if location = issue["location"] - print(colorize(LocationDescription.new(location, ": "), :cyan)) + source_buffer = @filesystem.source_buffer_for(location["path"]) + print(colorize(LocationDescription.new(source_buffer, location, ": "), :cyan)) end print(issue["description"]) print(colorize(" [#{issue["engine_name"]}]", "#333333")) puts