Sha256: cdc6cfeba95d540a09d0ff6da113b3506ae5e7e50cdb1b457c6fb7363623c245

Contents?: true

Size: 824 Bytes

Versions: 15

Compression:

Stored size: 824 Bytes

Contents

# frozen_string_literal: true

require 'bundler'
require 'bundler/gem_tasks'

Dir['tasks/**/*.rake'].each { |t| load t }

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  warn e.message
  warn 'Run `bundle install` to install missing gems'
  exit e.status_code
end

require 'rubocop/rake_task'
require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
end

desc 'Run RuboCop over itself'
RuboCop::RakeTask.new(:internal_investigation).tap do |task|
  if RUBY_ENGINE == 'ruby' &&
     RbConfig::CONFIG['host_os'] !~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
    task.options = %w[--parallel]
  end
end

task default: %i[
  documentation_syntax_check
  generate_cops_documentation
  test
  internal_investigation
]

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rubocop-minitest-0.9.0 Rakefile
rubocop-minitest-0.8.1 Rakefile
rubocop-minitest-0.8.0 Rakefile
rubocop-minitest-0.7.0 Rakefile
rubocop-minitest-0.6.2 Rakefile
rubocop-minitest-0.6.1 Rakefile
rubocop-minitest-0.6.0 Rakefile
rubocop-minitest-0.5.1 Rakefile
rubocop-minitest-0.5.0 Rakefile
rubocop-minitest-0.4.1 Rakefile
rubocop-minitest-0.4.0 Rakefile
rubocop-minitest-0.3.0 Rakefile
rubocop-minitest-0.2.1 Rakefile
rubocop-minitest-0.2.0 Rakefile
rubocop-minitest-0.1.0 Rakefile