Sha256: d3137ec4080545a3b33205331cd7ac738e9f7430f26c6aba8080986fd4127dcc

Contents?: true

Size: 516 Bytes

Versions: 3

Compression:

Stored size: 516 Bytes

Contents

module Rubycritic
  module Analyser

    class Churn
      def initialize(analysed_files, source_control_system)
        @analysed_files = analysed_files
        @source_control_system = source_control_system
      end

      def run
        @analysed_files.each do |analysed_file|
          analysed_file.churn = @source_control_system.revisions_count(analysed_file.path)
          analysed_file.committed_at = @source_control_system.date_of_last_commit(analysed_file.path)
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubycritic-1.0.2 lib/rubycritic/analysers/churn.rb
rubycritic-1.0.1 lib/rubycritic/analysers/churn.rb
rubycritic-1.0.0 lib/rubycritic/analysers/churn.rb