Sha256: 6a535229809c56076029d370d98f4e8a99c08e184401ac2e7d16b46ddddd30cd
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { name: path_info[0], x: path_info[1], y: path_info[2] } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.11 | lib/rubycritic/turbulence.rb |