Sha256: c360577945262993972a23e37954419cf136ec2ac7898ba73eaa19ec53d4f4e6

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

require "rubycritic/source_control_systems/base"
require "rubycritic/modules_initializer"
require "rubycritic/analysers_runner"
require "rubycritic/revision_comparator"

module Rubycritic

  class Orchestrator
    def initialize
      @source_control_system = SourceControlSystem::Base.create
    end

    def critique(paths)
      analysed_modules = ModulesInitializer.init(paths)
      AnalysersRunner.new(analysed_modules, @source_control_system).run
      if @source_control_system.has_revision?
        RevisionComparator.new(analysed_modules, @source_control_system, paths).set_statuses
      end
      analysed_modules
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubycritic-1.1.1 lib/rubycritic/orchestrator.rb