Sha256: 85d721f67829f75d989845c152bf8eb1e94977ee854469b3fbd00235c71f6737

Contents?: true

Size: 749 Bytes

Versions: 2

Compression:

Stored size: 749 Bytes

Contents

module Pelusa
  # Public: Runs the runner on a set of files.
  #
  # Returns an Array of results of a given Reporter
  def self.run(files=[], reporter=StdoutReporter)
    lints = configuration.enabled_lints
    runner = Runner.new(lints, reporter)
    runner.run(files)
  end

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

require 'yaml'

require 'pelusa/configuration'
require 'pelusa/cli'
require 'pelusa/runner'
require 'pelusa/analyzer'
require 'pelusa/lint'
require 'pelusa/analysis'
require 'pelusa/class_analyzer'
require 'pelusa/report'
require 'pelusa/iterator'


require 'pelusa/reporters/reporter'
require 'pelusa/reporters/stdout_reporter'
require 'pelusa/reporters/ruby_reporter'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pelusa-0.1.1 lib/pelusa.rb
pelusa-0.1.0 lib/pelusa.rb