Sha256: e5b9c5bf761ab0d090f5609412cb5b1a8d708ba99a1cd7a9d4cb8ef5600564d2
Contents?: true
Size: 805 Bytes
Versions: 3
Compression:
Stored size: 805 Bytes
Contents
# frozen_string_literal: true require_relative 'configuration_validator' module Reek module Configuration # # Hash extension for the default directive. # module DefaultDirective include ConfigurationValidator # Adds the configuration for detectors as default directive. # # @param detectors_configuration [Hash] the configuration e.g.: # { # :IrresponsibleModule => {:enabled=>false}, # :Attribute => {:enabled=>true} # } # # @return [self] def add(detectors_configuration) detectors_configuration.each do |name, configuration| detector = key_to_smell_detector(name) self[detector] = (self[detector] || {}).merge configuration end self end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-6.4.0 | lib/reek/configuration/default_directive.rb |
reek-6.3.0 | lib/reek/configuration/default_directive.rb |
reek-6.2.0 | lib/reek/configuration/default_directive.rb |