Sha256: 1c3cc18c5592876ac5292f754691fe7d095d455df3de99bf65e6ea8c83b3e8c6
Contents?: true
Size: 777 Bytes
Versions: 12
Compression:
Stored size: 777 Bytes
Contents
module Hexx module Suit module Metrics # Prepares and runs rubocop environment from '.hexx-suit.yml' class Rubocop < RSpec::Metrics::Base # @!scope class # Sets ENV variables for rubocop rake tasks # # @return [self] def load ENV["RUBOCOP_FORMAT"] = options["format"] ENV["RUBOCOP_OUTPUT"] = options["output"] super end private # rubocop metric definitions def name :rubocop end def default_options { "format" => "html", "output" => "tmp/rubocop/index.html" } end # helpers def options @options ||= default_options.merge settings.to_hash end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems