Sha256: 0bcfa0c520a70c301ed70f29171aeb13250c5184598b5ca53817ad2d793e2f6d
Contents?: true
Size: 397 Bytes
Versions: 8
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true require_relative 'base_report' module Reek module Report # # Displays a list of smells in JSON format # JSON with empty array for 0 smells # # @public # class JSONReport < BaseReport def show(out = $stdout) out.print ::JSON.generate smells.map { |smell| warning_formatter.format_hash(smell) } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems