Sha256: d0355f5822837002cbc23b524da07959f16112823eb220c8c5043e8f21c64e4d

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

# frozen_string_literal: true

require_relative "reviewer/arguments"
require_relative "reviewer/configuration"
require_relative "reviewer/loader"
require_relative "reviewer/tool"
require_relative "reviewer/tools"
require_relative "reviewer/version"

module Reviewer
  class Error < StandardError; end

  class << self
    attr_writer :configuration
  end

  def self.review
    options = Arguments.new
    # TODO: Make it actually run the tools.
    puts "Running with the following options:"
    pp options
  end

  def self.format
    options = Arguments.new
    # TODO: Make it actually run the tools.
    puts "Running with the following options:"
    pp options
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reviewer-0.1.1 lib/reviewer.rb