lib/reek/configuration/app_configuration.rb in reek-4.0.0.pre1 vs lib/reek/configuration/app_configuration.rb in reek-4.0.0

- old
+ new

@@ -29,39 +29,9 @@ end end # Instantiate a configuration by passing everything in. # - # @deprecated This method will be removed in Reek 4.0. - # - # @param [Hash] map a hash with three possible keys representing - # different types of directives. - # @option map [Hash] :directory_directives Directory specific configuration - # for instance: - # { Pathname("spec/samples/three_clean_files/") => - # { Reek::Smells::UtilityFunction => { "enabled" => false } } } - # @option map [Hash] :default_directive Default configuration - # for instance: - # { Reek::Smells::IrresponsibleModule => { "enabled" => false } } - # @option map [Array] :excluded_paths list of paths to exclude from analysis - # for instance: - # [ Pathname('spec/samples/two_smelly_files') ] - # - # @return [AppConfiguration] - # - # @public - def self.from_map(map = {}) - allocate.tap do |instance| - instance.instance_eval do - load_values map.fetch(:directory_directives, {}) - load_values map.fetch(:default_directive, {}) - load_values EXCLUDE_PATHS_KEY => map.fetch(:excluded_paths, []) - end - end - end - - # Instantiate a configuration by passing everything in. - # # Loads the configuration from a hash of the form that is loaded from a # +.reek+ config file. # @param [Hash] hash The configuration hash to load. # # @return [AppConfiguration]