Sha256: 6b793475c30d7c5b657f7fe680d08d8f3790962e0e41d469bd856e7de68dd554

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 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

3 entries across 3 versions & 1 rubygems

Version Path
pelusa-0.2.2 lib/pelusa.rb
pelusa-0.2.1 lib/pelusa.rb
pelusa-0.2.0 lib/pelusa.rb