Sha256: 3173289c900c3ace110729c7fd436b9af9a09d8fdd5f98c8b550e66a0dc2b7c7

Contents?: true

Size: 886 Bytes

Versions: 9

Compression:

Stored size: 886 Bytes

Contents

# Copyright (c) 2023 Jerome Arbez-Gindre
# frozen_string_literal: true

namespace 'quality' do
  begin
    require('rubocop/rake_task')

    RuboCop::RakeTask.new do |task|
      task.options << '--display-cop-names'
      task.options << '--config=config/rubocop.yml'
    end
  rescue LoadError
    task(:rubocop) do
      puts('Install rubocop to run its rake tasks')
    end
  end

  begin
    require('reek/rake/task')

    Reek::Rake::Task.new do |t|
      t.fail_on_error = true
      t.verbose = false

      t.reek_opts = '--config config/reek.yml'
    end
  rescue LoadError
    task(:reek) do
      puts('Install reek to run its rake tasks')
    end
  end

  desc 'Runs all quality code check'
  task(all: ['quality:rubocop', 'quality:reek'])
end

desc 'Synonym for quality:rubocop'
task(rubocop: 'quality:rubocop')

desc 'Synonym for quality:reek'
task(reek: 'quality:reek')

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
asciidoctor-defmastership-1.3.0 tasks/smelling_code.rake
asciidoctor-defmastership-1.2.0 tasks/smelling_code.rake
asciidoctor-defmastership-1.1.2 tasks/smelling_code.rake
asciidoctor-defmastership-1.1.1 tasks/smelling_code.rake
asciidoctor-defmastership-1.1.0 tasks/smelling_code.rake
asciidoctor-rubyeval-1.0.0 tasks/smelling_code.rake
asciidoctor-defmastership-1.0.10 tasks/smelling_code.rake
asciidoctor-defmastership-1.0.9 tasks/smelling_code.rake
asciidoctor-defmastership-1.0.8 tasks/smelling_code.rake