Sha256: ee5ae2e528d26f556f9efa7d16dab8dcc38802d94d66cc98de3ff421b1c24f36
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' require 'bundler/audit/task' require 'pathname' require 'license_finder' require 'English' RSpec::Core::RakeTask.new(:spec) do |task| task.rspec_opts = '--warnings' end RuboCop::RakeTask.new(:rubocop) do |task| rubocop_report_pathname = Pathname(Rake.application.original_dir).join('tmp', 'rubocop.txt') rubocop_report_pathname.dirname.mkpath task.requires << 'rubocop-rspec' task.options = %w[ --display-cop-names --extra-details --display-style-guide --fail-level error --format progress --format simple --out ].push(rubocop_report_pathname.to_s) end Bundler::Audit::Task.new desc 'Check dependency licenses' task :license_finder do puts `license_finder --quiet --format text` abort('LicenseFinder failed') unless $CHILD_STATUS.success? end task default: %i[spec rubocop bundle:audit license_finder]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-tabular-0.3.0 | Rakefile |
rspec-tabular-0.2.0 | Rakefile |