Sha256: d0cf16a8270ba2c960b62e0068e176e2cff8bd471858a9a6598e7678b30da26f

Contents?: true

Size: 556 Bytes

Versions: 9

Compression:

Stored size: 556 Bytes

Contents

require 'rake/clean'

CONFIG_FILE = 'config/defaults.reek'

file CONFIG_FILE do
  config = {}
  require 'reek/core/sniffer'
  Reek::Core::SmellRepository.smell_types.each do |klass|
    config[klass.name.split(/::/)[-1]] = klass.default_config
  end
  $stderr.puts "Creating #{CONFIG_FILE}"
  require 'yaml'
  File.open(CONFIG_FILE, 'w') { |f| YAML.dump(config, f) }
end

task CONFIG_FILE => FileList['lib/reek/smells/*.rb']

task 'test:spec' => CONFIG_FILE
task 'test:quality' => CONFIG_FILE
task 'test:features' => CONFIG_FILE
task 'reek' => CONFIG_FILE

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reek-2.0.1 tasks/develop.rake
reek-2.0.0 tasks/develop.rake
reek-1.6.6 tasks/develop.rake
reek-1.6.5 tasks/develop.rake
reek-1.6.4 tasks/develop.rake
reek-1.6.3 tasks/develop.rake
reek-1.6.2 tasks/develop.rake
reek-1.6.1 tasks/develop.rake
reek-1.6.0 tasks/develop.rake