Sha256: 84b0c428ca29d8278a5e0071dfa32f8e7fe061efdf79b524ef76be6c31bbefa7
Contents?: true
Size: 1.69 KB
Versions: 17
Compression:
Stored size: 1.69 KB
Contents
# frozen_string_literal: true require 'rake_factory' require_relative '../tasks/lint' require_relative '../tasks/optimise' require_relative '../tasks/idiomise' require_relative '../tasks/format' require_relative '../tasks/pedantise' require_relative '../tasks/check' require_relative '../tasks/style' module RakeLeiningen module TaskSets class Checks < RakeFactory::TaskSet parameter :argument_names, default: [] parameter :profile parameter :environment parameter :directory, default: '.' parameter :fix, default: false parameter :ensure_task_name, default: 'leiningen:ensure' parameter :lint_task_name, default: :lint parameter :optimise_task_name, default: :optimise parameter :idiomise_task_name, default: :idiomise parameter :format_task_name, default: :format parameter :pedantise_task_name, default: :pedantise parameter :check_task_name, default: :check task Tasks::Lint, name: RakeFactory::DynamicValue.new { |ts| ts.lint_task_name } task Tasks::Optimise, name: RakeFactory::DynamicValue.new { |ts| ts.optimise_task_name } task Tasks::Idiomise, name: RakeFactory::DynamicValue.new { |ts| ts.idiomise_task_name }, replace: RakeFactory::DynamicValue.new { |ts| ts.fix } task Tasks::Format, name: RakeFactory::DynamicValue.new { |ts| ts.format_task_name }, mode: RakeFactory::DynamicValue.new { |ts| ts.fix ? :fix : :check } task Tasks::Pedantise, name: RakeFactory::DynamicValue.new { |ts| ts.pedantise_task_name } task Tasks::Check, name: RakeFactory::DynamicValue.new { |ts| ts.check_task_name } end end end
Version data entries
17 entries across 17 versions & 1 rubygems