Sha256: 2f405bc4ebfad6c695345a615c33efa47f0f84620d902ef58b80a2cdde75ebdf
Contents?: true
Size: 494 Bytes
Versions: 10
Compression:
Stored size: 494 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.+/ template "%gem_name%/.rubocop.yml.tt" cli.run "cd #{gem_name} && bundle exec rubocop --auto-correct > /dev/null" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems