Sha256: b898d0154d380a6756bbf383be91d0f9fddacf8715241e41fc5faf149099f981
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
module Gemsmith module Skeletons # Configures Rubocop support. class RubocopSkeleton < BaseSkeleton def enabled? cli.template_options.key?(:rubocop) && cli.template_options[:rubocop] end def create return unless enabled? cli.template "%gem_name%/.rubocop.yml.tt", cli.template_options cli.template "%gem_name%/lib/%gem_name%/tasks/rubocop.rake.tt", cli.template_options end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.6.0 | lib/gemsmith/skeletons/rubocop_skeleton.rb |
gemsmith-5.5.0 | lib/gemsmith/skeletons/rubocop_skeleton.rb |
gemsmith-5.4.0 | lib/gemsmith/skeletons/rubocop_skeleton.rb |