module SugarCane

Default checks performed when no checks are provided

Accepts a parsed configuration and passes those options to a new Runner

Provides a SimpleTaskRunner or Parallel task runner based on configuration

Constants

VERSION

Public Class Methods

default_checks() click to toggle source
# File lib/sugarcane/default_checks.rb, line 8
def default_checks
  [
    AbcCheck,
    StyleCheck,
    DocCheck,
    ThresholdCheck
  ]
end
run(*args) click to toggle source
# File lib/sugarcane/runner.rb, line 9
def run(*args)
  Runner.new(*args).run
end
task_runner(opts) click to toggle source
# File lib/sugarcane/task_runner.rb, line 3
def task_runner(opts)
  if opts[:parallel]
    Parallel
  else
    SimpleTaskRunner
  end
end

Private Instance Methods

default_checks() click to toggle source
# File lib/sugarcane/default_checks.rb, line 8
def default_checks
  [
    AbcCheck,
    StyleCheck,
    DocCheck,
    ThresholdCheck
  ]
end
run(*args) click to toggle source
# File lib/sugarcane/runner.rb, line 9
def run(*args)
  Runner.new(*args).run
end
task_runner(opts) click to toggle source
# File lib/sugarcane/task_runner.rb, line 3
def task_runner(opts)
  if opts[:parallel]
    Parallel
  else
    SimpleTaskRunner
  end
end