Sha256: 0c52ba9bd173ea5e11a86f357d9d7a843dda14088318eeb444e7518e7d0a0e23

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 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/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.2.4 lib/pelusa.rb
pelusa-0.2.3 lib/pelusa.rb