Sha256: 85963b8a2bf5603f5fe01f8bb61fdf196f0a05ef7c7bb7d895cf086c19bbe684

Contents?: true

Size: 753 Bytes

Versions: 5

Compression:

Stored size: 753 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Capybara
    module Cop
      # Source and spec generator for new cops
      #
      # This generator will take a cop name and generate a source file
      # and spec file when given a valid qualified cop name.
      # @api private
      class Generator < RuboCop::Cop::Generator
        def todo
          <<~TODO
            Do 4 steps:
              1. Modify the description of #{badge} in config/default.yml
              2. Implement your new cop in the generated file!
              3. Add an entry about new cop to CHANGELOG.md
              4. Commit your new cop with a message such as
                 e.g. "Add new `#{badge}` cop"
          TODO
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
rubocop-capybara-2.22.1 lib/rubocop/capybara/cop/generator.rb
rubocop-capybara-2.22.0 lib/rubocop/capybara/cop/generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-capybara-2.21.0/lib/rubocop/capybara/cop/generator.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/lib/rubocop/capybara/cop/generator.rb
rubocop-capybara-2.21.0 lib/rubocop/capybara/cop/generator.rb