Sha256: 05edd838592c336b548ac715b2e4ba5893e3a4004eeacc825949143002192c5b
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
require_relative '../lib/reek' require_relative '../lib/reek/detector_repository' require_relative '../lib/reek/configuration/rake_task_converter' require_relative '../lib/reek/configuration/app_configuration' require 'yaml' namespace :configuration do desc 'Updates the default configuration file when smell defaults change' task :update_default_configuration do content = Reek::DetectorRepository.smell_types.each_with_object({}) do |klass, hash| hash[klass.smell_type] = Reek::Configuration::RakeTaskConverter.convert klass.default_config end File.open(Reek::DEFAULT_SMELL_CONFIGURATION, 'w') do |file| YAML.dump({ Reek::DETECTORS_KEY => content }, file) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-6.0.3 | tasks/configuration.rake |
reek-6.0.2 | tasks/configuration.rake |