Sha256: 8054156bd6d9614136601ed1ddf40fd121c01e4852e0e2b83c8962e6a0b50a38

Contents?: true

Size: 765 Bytes

Versions: 14

Compression:

Stored size: 765 Bytes

Contents

require 'rake/clean'
require 'reek/core/sniffer'
require 'yaml'

CONFIG_DIR = 'config'
CONFIG_FILE = "#{CONFIG_DIR}/defaults.reek"

CLOBBER.include(CONFIG_DIR)

directory CONFIG_DIR

file CONFIG_FILE => [CONFIG_DIR] do
  config = {}
  Reek::Core::SmellRepository.smell_classes.each do |klass|
    config[klass.name.split(/::/)[-1]] = klass.default_config
  end
  $stderr.puts "Creating #{CONFIG_FILE}"
  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:slow' => [CONFIG_FILE]
task 'test:rcov' => [CONFIG_FILE]
task 'test:quality' => [CONFIG_FILE]
task 'test:features' => [CONFIG_FILE]
task 'reek' => [CONFIG_FILE]
task 'check:manifest' => [CONFIG_FILE]

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
reek-1.3.8 tasks/develop.rake
reek-1.3.7 tasks/develop.rake
reek-1.3.6 tasks/develop.rake
reek-1.3.5 tasks/develop.rake
reek-1.3.4 tasks/develop.rake
reek-1.3.3 tasks/develop.rake
reek-1.3.2 tasks/develop.rake
reek-1.3.1 tasks/develop.rake
reek-1.3 tasks/develop.rake
reek-1.2.13 tasks/develop.rake
reek-1.2.12 tasks/develop.rake
reek-1.2.11 tasks/develop.rake
reek-1.2.10 tasks/develop.rake
reek-1.2.9 tasks/develop.rake