Sha256: 237a2ef510add0e5b52f7f8d4b7bf57534bbd60782b47e515f5aac812f5c7d3c
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
module Rubycritic module Analyser class Churn attr_writer :source_control_system def initialize(analysed_modules) @analysed_modules = analysed_modules @source_control_system = Config.source_control_system end def run @analysed_modules.each do |analysed_module| analysed_module.churn = @source_control_system.revisions_count(analysed_module.path) analysed_module.committed_at = @source_control_system.date_of_last_commit(analysed_module.path) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems