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