Sha256: ce504d186f73a114328ebd7c4a5cca3a905ee5e087942095d2a08934efd7ba17
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true module RuboCop module RSpecRails 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
4 entries across 4 versions & 2 rubygems