Sha256: 2771581465a14a20c5ccab12e25e1101aa106991dbe3bff3fe000e2e576f2e8a

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop'
require 'rubocop/cli'

Bundler::GemHelper.install_tasks

task test: %i[rubocop spec]
task default: :test

# Rubocop
desc 'Run Rubocop lint checks'
task :rubocop do # rubocop:disable Rails/RakeEnvironment
  result = RuboCop::CLI.new.run(%w[-c .autocop-rubocop.yml])
  exit result unless result.zero?
end

desc 'Run specs'
RSpec::Core::RakeTask.new('spec') do |task|
  task.pattern = 'spec/**/*_spec.rb'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
autocop-0.4.4 Rakefile
autocop-0.4.3 Rakefile
autocop-0.4.2 Rakefile
autocop-0.4.1 Rakefile