Sha256: 1238c2bf463a587b8215ea79320bb0d8ca7da2beaf7478bd5adf19b35c9b731a
Contents?: true
Size: 939 Bytes
Versions: 3
Compression:
Stored size: 939 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 -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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prolog-dry_types-0.3.0 | Rakefile |
prolog-dry_types-0.2.0 | Rakefile |
prolog-dry_types-0.1.0 | Rakefile |