Sha256: b18e7a14cd5ee095ae673cfe40c7a0a72457bfc5806d775ff5316a9abe431205
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 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 = #{@labels.to_json}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'cane.js'), 'w') {|f| f << content } end end end
Version data entries
4 entries across 4 versions & 1 rubygems