Sha256: 7b36f49460315a36a133b73e959b908c711156d438383b697887438b6ca2d920
Contents?: true
Size: 955 Bytes
Versions: 6
Compression:
Stored size: 955 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" require 'rake/tasklib' require 'flay' require 'flay_task' require 'tasks/prolog_flog_task' require 'reek/rake/task' require 'rubocop/rake_task' Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList['test/**/*_test.rb'] end RuboCop::RakeTask.new(:rubocop) do |task| task.patterns = [ 'lib/**/*.rb', 'test/**/*.rb' ] task.formatters = ['simple', 'd'] task.fail_on_error = true task.options << '--display-cop-names' end Reek::Rake::Task.new do |t| t.config_file = 'config.reek' t.source_files = 'lib/**/*.rb' t.reek_opts = '--sort-by smelliness --no-progress -s' end FlayTask.new do |t| t.verbose = true t.dirs = %w(app lib) end FlogTask.new do |t| t.verbose = true t.threshold = 200 # default is 200 t.methods_only = true t.dirs = %w(lib) end task(:default).clear task default: [:test, :rubocop, :flay, :flog, :reek]
Version data entries
6 entries across 6 versions & 1 rubygems