Sha256: 5662df2ed2641347975abc42c717058f8f8fd8956ad01a8993580c543e409120

Contents?: true

Size: 750 Bytes

Versions: 13

Compression:

Stored size: 750 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    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

13 entries across 13 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.3/lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.3.0 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.2.0 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.1.0 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.5 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.4 lib/rubocop/rspec/cop/generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-3.0.1/lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.3 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.2 lib/rubocop/rspec/cop/generator.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.1/lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.1 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.0 lib/rubocop/rspec/cop/generator.rb
rubocop-rspec-3.0.0.pre lib/rubocop/rspec/cop/generator.rb