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

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

Overview

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

Constant Summary

Constants inherited from Base

Base::SYSTEM

Class Method Summary collapse

Methods inherited from Base

#load, run, #run

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