Sha256: d3272412f853fdcc6776e2c9266c46a6bba58e69b53dd7ce40a1d61b2ff50f2a
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
MetricFu.metrics_require { 'cane/cane_grapher' } module MetricFu class CaneBluffGrapher < CaneGrapher def graph! content = <<-EOS #{BLUFF_DEFAULT_OPTIONS} g.title = 'Cane: code quality threshold violations'; g.data('cane', [#{@cane_violations.join(',')}]); g.labels = #{MultiJson.dump(@labels)}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'cane.js'), 'w') {|f| f << content } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric_fu-4.2.1 | lib/metric_fu/metrics/cane/cane_bluff_grapher.rb |