Sha256: c29321d79a1245ef692804f3b31bd177bf009310da5a20b93ddf799a7050e936

Contents?: true

Size: 517 Bytes

Versions: 19

Compression:

Stored size: 517 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"

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

task default: :spec

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

19 entries across 19 versions & 1 rubygems

Version Path
danger-swiftformat-0.9.0 Rakefile
danger-swiftformat-0.8.1 Rakefile
danger-swiftformat-0.8.0 Rakefile
danger-swiftformat-0.7.0 Rakefile
danger-swiftformat-0.6.0 Rakefile
danger-swiftformat-0.5.0 Rakefile
danger-swiftformat-0.4.0 Rakefile
danger-swiftformat-0.3.6 Rakefile
danger-swiftformat-0.3.5 Rakefile
danger-swiftformat-0.3.4 Rakefile
danger-swiftformat-0.3.3 Rakefile
danger-swiftformat-0.3.2 Rakefile
danger-swiftformat-0.3.1 Rakefile
danger-swiftformat-0.3.0 Rakefile
danger-swiftformat-0.2.0 Rakefile
danger-swiftformat-0.1.0 Rakefile
danger-swiftformat-0.0.3 Rakefile
danger-swiftformat-0.0.2 Rakefile
danger-swiftformat-0.0.1 Rakefile