Module: Pelusa

Defined in:
lib/pelusa.rb,
lib/pelusa/cli.rb,
lib/pelusa/lint.rb,
lib/pelusa/report.rb,
lib/pelusa/runner.rb,
lib/pelusa/version.rb,
lib/pelusa/iterator.rb,
lib/pelusa/analysis.rb,
lib/pelusa/analyzer.rb,
lib/pelusa/lint/properties.rb,
lib/pelusa/lint/demeter_law.rb,
lib/pelusa/lint/else_clauses.rb,
lib/pelusa/reporters/reporter.rb,
lib/pelusa/lint/line_restriction.rb,
lib/pelusa/lint/short_identifiers.rb,
lib/pelusa/lint/indentation_level.rb,
lib/pelusa/reporters/ruby_reporter.rb,
lib/pelusa/lint/instance_variables.rb,
lib/pelusa/lint/collection_wrappers.rb,
lib/pelusa/reporters/stdout_reporter.rb

Defined Under Namespace

Modules: Lint Classes: Analysis, Analyzer, ClassAnalyzer, Cli, FailedAnalysis, Iterator, Report, Reporter, RubyReporter, Runner, StdoutReporter, SuccessfulAnalysis

Constant Summary

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.run(files = [], reporter = StdoutReporter, lints = Lint.all) ⇒ Object

Public: Runs the runner on a set of files.

Returns an Array of results of a given Reporter



5
6
7
8
# File 'lib/pelusa.rb', line 5

def self.run(files=[], reporter=StdoutReporter, lints=Lint.all)
  runner = Runner.new(lints, reporter)
  runner.run(files)
end