Class: Hexx::Suit::Metrics::Rubocop

Inherits:
RSpec::Metrics::Base
  • Object
show all
Defined in:
lib/hexx/suit/metrics/rubocop.rb

Overview

Prepares and runs rubocop environment from '.hexx-suit.yml'

Class Method Summary collapse

Class Method Details

.loadself

Sets ENV variables for rubocop rake tasks

Returns:

  • (self)


12
13
14
15
16
17
# File 'lib/hexx/suit/metrics/rubocop.rb', line 12

def load
  ENV["RUBOCOP_FORMAT"] = options["format"]
  ENV["RUBOCOP_OUTPUT"] = options["output"]

  super
end