Sha256: 1386dc7f4a4bfc39c84de95ba2f4ed58220b0c8a2b8831fd37d8ce7e6cfc4a90

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

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

require 'yard'
require 'yard/rake/yardoc_task'

require 'code_statistics'

RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:spec)

task default: :spec

require 'version'
require 'rake/version_task'
Rake::VersionTask.new

YARD::Rake::YardocTask.new do |t|
  t.files = ['lib/**/*.rb', '-', 'doc/**/*', 'spec/**/*_spec.rb']
  t.options += ['-o', 'yardoc']
end
YARD::Config.load_plugin('yard-rspec')

namespace :yardoc do
  task :clobber do
    begin
      rm_r 'yardoc'
    rescue StandardError
      nil
    end
    begin
      rm_r '.yardoc'
    rescue StandardError
      nil
    end
    begin
      rm_r 'pkg'
    rescue StandardError
      nil
    end
  end
end
task clobber: 'yardoc:clobber'

desc 'Run CVE security audit over bundle'
task :audit do
  system('bundle audit')
end

desc 'Run dead line of code detection'
task :debride do
  system('debride -w .debride_whitelist .')
end

desc 'Run SBOM CycloneDX Xml format file'
task :sbom do
  system('cyclonedx-ruby -p .')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fixturizer-0.4.4 Rakefile
fixturizer-0.4.3 Rakefile