Sha256: a3d1ed1bc754acc6753a0ef002ef3f9c5b50ad18df6132fb39dfe554afc16be0
Contents?: true
Size: 1023 Bytes
Versions: 1
Compression:
Stored size: 1023 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/dsl_definition' require 'rake' require 'rspec/core/rake_task' def ruby_files_for_shell files = Dir.glob 'lib/**/*.rb' files.join(' ') end desc 'Test coco' task :default => :spec desc 'Test coco' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = ['--color --order=random'] end desc 'Check for code smells with reek' task :reek do puts 'Checking for code smells.' puts '-------------------------' system "reek #{ruby_files_for_shell}" end desc 'Check for duplicate code with flay' task :flay do puts 'Checking for duplicate code.' puts '----------------------------' exec "flay lib" end desc 'Check various code metrics' task :metrics do puts 'Checking various metrics.' puts '=========================' Rake::Task['reek'].execute Rake::Task['flay'].execute end namespace :doc do desc 'Generate documentation for developpers' task :create do exec 'yardoc' end desc 'Delete documentation' task :clean do rm_rf 'doc' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coco-0.13.0 | Rakefile |