Sha256: 284141551fe743bd5a0485bbbc2f4b94cedff772bdeb8e87fce181d1ab0ff724

Contents?: true

Size: 883 Bytes

Versions: 6

Compression:

Stored size: 883 Bytes

Contents

# encoding: utf-8

require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts 'Run `bundle install` to install missing gems'
  exit e.status_code
end
require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end

desc 'Run RSpec with code coverage'
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec'].execute
end

desc 'Run RuboCop over itself'
Rubocop::RakeTask.new(:internal_investigation)

task default: [:spec, :internal_investigation]

require 'yard'
YARD::Rake::YardocTask.new

Rubocop::RakeTask.new

task :console do
  require 'irb'
  require 'irb/completion'
  require 'rubocop'
  ARGV.clear
  IRB.start
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-0.22.0 Rakefile
rubocop-0.21.0 Rakefile
rubocop-0.20.1 Rakefile
rubocop-0.20.0 Rakefile
rubocop-0.19.1 Rakefile
rubocop-0.19.0 Rakefile