Sha256: 535d97df0dea2f8250c5e5192314c284579df5ce9eabe3aef36b2fe7ae6e80d1
Contents?: true
Size: 515 Bytes
Versions: 17
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Gemsmith module Generators # Generates Rubocop support. class Rubocop < Base def run if configuration.dig :generate, :rubocop template "%gem_name%/.rubocop.yml.tt" cli.run "cd #{gem_name} && bundle exec rubocop --auto-correct > /dev/null" else cli.gsub_file "#{gem_name}/Rakefile", /require.+rubocop.+\n/, "" cli.gsub_file "#{gem_name}/Rakefile", /RuboCop.+\n/, "" end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems