Sha256: 19734f9e98b368fa7b4075aa12eef70a136363077e9ccdfef26375cbc7405c9d

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

require "rubycritic/source_control_systems/base"
require "rubycritic/analysers_runner"
require "rubycritic/reporter"

module Rubycritic
  module Command
    class Ci
      def initialize(paths)
        @paths = paths
        Config.source_control_system = SourceControlSystem::Base.create
      end

      def execute
        report(critique)
      end

      def critique
        AnalysersRunner.new(@paths).run
      end

      def report(analysed_modules)
        Reporter.generate_report(analysed_modules)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubycritic-2.5.0 lib/rubycritic/commands/ci.rb
rubycritic-2.4.1 lib/rubycritic/commands/ci.rb
rubycritic-2.4.0 lib/rubycritic/commands/ci.rb
rubycritic-2.3.0 lib/rubycritic/commands/ci.rb
rubycritic-2.2.0 lib/rubycritic/commands/ci.rb
rubycritic-2.1.0 lib/rubycritic/commands/ci.rb
rubycritic-2.0.0 lib/rubycritic/commands/ci.rb
rubycritic-1.4.0 lib/rubycritic/commands/ci.rb