Sha256: df9018c78024a69eb670514b994cf5d0474d7b5cf8b8da901564f3a009cb288c
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require "bundler/gem_tasks" require "rake/testtask" require 'rake/tasklib' require 'flay_task' require 'flog' require 'flog_task' require 'reek/rake/task' require 'rubocop/rake_task' Rake::TestTask.new(:test) do |t| t.ruby_opts << '-W0' 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 << '--rails' task.options << '--display-cop-names' end Reek::Rake::Task.new do |t| t.config_file = 'config.reek' t.source_files = '{app,lib,test}/**/*.rb' t.reek_opts = '--sort-by smelliness -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.instance_variable_set :@methods_only, true t.dirs = %w(app lib) # Look, Ma; no tests! Run the tool manually every so often for those. end task(:default).clear task default: [:test, :rubocop, :flay, :flog, :reek]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prolog-services-replace_content-0.1.3 | Rakefile |