Sha256: ebf98530b49fbde3de54e69b20251211c656eece84dd026a10556c51031a82e7
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
# require 'simplecov' require 'rubocop/rake_task' require 'reek/rake/task' require 'rspec/core/rake_task' require 'roodi_task' task default: [:test] task test: [:rspec] desc 'Run Test Suite with RSpec' RSpec::Core::RakeTask.new(:rspec) do |task| task.patterns = ['spec/**/*.rb'] task.fail_on_error = false end task audit: [:style, :complexity, :duplication, :design, :documentation] task style: [:rubocop] desc 'Enforce Style Conformance with RuboCop' RuboCop::RakeTask.new(:rubocop) do |task| task.patterns = ['lib/**/*.rb'] task.fail_on_error = false end task complexity: [:flog] desc 'Assess Complexity with Flog' # FlogTask.new :flog, 9000, ['lib'] task :flog do sh 'flog lib/**/*.rb' end task duplication: [:flay] task :flay do sh 'flay' end task design: [:roodi, :reek] desc 'Find Code Smells with Reek' Reek::Rake::Task.new(:reek) do |task| task.fail_on_error = false end task :rework do sh 'churn' end task :documentation do sh 'inch' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ezmq-0.3.7 | Rakefile |