Class: RuboCop::Capybara::Cop::Generator Private
- Inherits:
-
RuboCop::Cop::Generator
- Object
- RuboCop::Cop::Generator
- RuboCop::Capybara::Cop::Generator
- Defined in:
- lib/rubocop/capybara/cop/generator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
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.
Instance Method Summary collapse
- #todo ⇒ Object private
Instance Method Details
#todo ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rubocop/capybara/cop/generator.rb', line 12 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 |