Class: Integration::RailsBestPractices

Inherits:
Base
  • Object
show all
Defined in:
lib/integrations/rails_best_practices.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #pronto_enabled?, #pronto_name, #run_with_config_handling_exit

Constructor Details

This class inherits a constructor from Integration::Base

Instance Method Details

#run_with(config) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/integrations/rails_best_practices.rb', line 6

def run_with(config)
  args = ['.', { 'silent' => true }]
  Keepclean.logger.debug "Running with args: #{args.inspect}"
  analyzer = ::RailsBestPractices::Analyzer.new(*args)
  analyzer.analyze
  analyzer.output
  analyzer.runner.errors.empty?
end