Sha256: 364500ac6203be58b5bb8d15b6893ebc40c1840cceb6edc9bd85adbff70a1621

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

require 'rake/clean'
require 'reek/core/smell_repository'

CONFIG_FILE = 'config/defaults.reek'

file CONFIG_FILE do
  config = {}
  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

3 entries across 3 versions & 1 rubygems

Version Path
reek-2.0.4 tasks/develop.rake
reek-2.0.3 tasks/develop.rake
reek-2.0.2 tasks/develop.rake