lib/gemsmith/generators/rubocop.rb in gemsmith-8.1.0 vs lib/gemsmith/generators/rubocop.rb in gemsmith-8.2.0
- old
+ new
@@ -5,11 +5,12 @@
# 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.template "%gem_name%/lib/tasks/rubocop.rake.tt", configuration
cli.run "rubocop --auto-correct > /dev/null"
end
end
end
end