Sha256: 758e0f56702e53b20517ff84684b6328f6eab239fe546f55baf829d4b1083f55

Contents?: true

Size: 518 Bytes

Versions: 17

Compression:

Stored size: 518 Bytes

Contents

require 'bundler/gem_tasks'
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) do |task|
  task.patterns = %w(lib/**/*.rb spec/**/*.rb)
end

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
danger-pmd-1.0.5 Rakefile
danger-pmd-1.0.4 Rakefile
danger-pmd-1.0.3 Rakefile
danger-pmd-1.0.2 Rakefile
danger-pmd-1.0.1 Rakefile
danger-pmd-0.4.0 Rakefile
danger-pmd-0.3.0 Rakefile
danger-pmd-0.2.2 Rakefile
danger-pmd-0.2.1 Rakefile
danger-pmd-0.2.0 Rakefile
danger-pmd-0.1.1 Rakefile
danger-pmd-0.1.0 Rakefile
danger-pmd-0.0.5 Rakefile
danger-pmd-0.0.4 Rakefile
danger-pmd-0.0.3 Rakefile
danger-pmd-0.0.2 Rakefile
danger-pmd-0.0.1 Rakefile