Sha256: 9219df20936f314c29ae060c852c36f5cceb48ebc622e46ab965212bc1a5d8ab

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require "rubocop/rake_task"

module RuboCop
  module Katalyst
    # Provides a custom rake task.
    #
    # require "rubocop/katalyst/rake_task"
    # RuboCop::Katalyst::RakeTask.new
    class RakeTask < ::RuboCop::RakeTask
      attr_accessor :verbose

      def initialize(name = :rubocop, *, &)
        super

        task(lint: :rubocop)
        task(autocorrect: "rubocop:autocorrect")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rubocop-katalyst-2.1.0 lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.5 lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.4 lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.3 lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.2 lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.1 lib/rubocop/katalyst/rake_task.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-katalyst-2.0.0/lib/rubocop/katalyst/rake_task.rb
rubocop-katalyst-2.0.0 lib/rubocop/katalyst/rake_task.rb