Sha256: ad214ed853b24bef7ca83753d473ba9c4460098f7b2cc48a822116cf903b2a6f
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Generators # Generates Rubocop support. class Rubocop < Base def run return unless configuration.dig(:generate, :rubocop) cli.uncomment_lines "#{gem_name}/Rakefile", /require.+rubocop.+/ cli.uncomment_lines "#{gem_name}/Rakefile", /RuboCop.+/ cli.template "%gem_name%/.rubocop.yml.tt", configuration cli.run "rubocop --auto-correct > /dev/null" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-8.2.0 | lib/gemsmith/generators/rubocop.rb |