Method: RubocopHelpers#run_rubocop

Defined in:
lib/potassium/helpers/rubocop-helpers.rb

#run_rubocopObject



4
5
6
7
8
# File 'lib/potassium/helpers/rubocop-helpers.rb', line 4

def run_rubocop
  options, paths = RuboCop::Options.new.parse(["-A"])
  runner = RuboCop::Runner.new(options, RuboCop::ConfigStore.new)
  runner.run(paths)
end