Sha256: 2cda54bdb9ecf1d2a9618ea91b7d9880397418119acbb8283c256b8f779f84c2

Contents?: true

Size: 647 Bytes

Versions: 7

Compression:

Stored size: 647 Bytes

Contents

MetricFu.metrics_require   { 'reek/reek_grapher' }
module MetricFu
  class ReekGchartGrapher < ReekGrapher
    def title
      "Reek: code smells"
    end
    def legend
      @legend ||= @reek_count.keys.sort
    end
    def data
      values = []
      legend.collect {|k| values << @reek_count[k]}
      values
    end
    def output_filename
      'reek.png'
    end
    def gchart_line_options
      super.merge({
          :bar_colors => COLORS,
          :stacked => false,
          :legend => legend,
          :custom => 'chdlp=t',
        })
    end
    def y_axis_scale_argument
      @reek_count.values.flatten.uniq
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metric_fu-4.4.4 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.4.3 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.4.2 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.4.1 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.4.0 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.3.1 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb
metric_fu-4.3.0 lib/metric_fu/metrics/reek/reek_gchart_grapher.rb