Sha256: bb6de0639d4ef888f11fabacf645bbbe0624e02d81946e4a201dc3dbda4f7216

Contents?: true

Size: 788 Bytes

Versions: 5

Compression:

Stored size: 788 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "reek/rake/task"
require "rspec/core/rake_task"
require "rubocop/rake_task"

RSpec::Core::RakeTask.new(:specs)

task default: :specs

task :spec do
  Rake::Task["specs"].invoke
  Rake::Task["rubocop"].invoke
  Rake::Task["spec_docs"].invoke
end

desc "Run RuboCop on the lib/specs directory"
RuboCop::RakeTask.new(:rubocop) { |task|
  task.requires << "rubocop-rspec"
  task.requires << "rubocop-rake"
  task.patterns = ["lib/**/*.rb", "spec/**/*.rb"]
}

desc "Run Reek on the lib/specs directory"
Reek::Rake::Task.new(:reek) { |task|
  task.source_files = FileList["lib/**/*.rb", "spec/**/*.rb"]
}

desc "Ensure that the plugin passes `danger plugins lint`"
task :spec_docs do
  sh "bundle exec danger plugins lint"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
danger-spm_version_updates-0.1.0 Rakefile
danger-spm_version_updates-0.0.4 Rakefile
danger-spm_version_updates-0.0.3 Rakefile
danger-spm_version_updates-0.0.2 Rakefile
danger-spm_version_updates-0.0.1 Rakefile