Sha256: 236672ab466031374a7d1a133c330185e9f5df8ed5659a15ad320ad5e1ba552c

Contents?: true

Size: 389 Bytes

Versions: 8

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Skeletons
    # Configures Rubocop support.
    class RubocopSkeleton < BaseSkeleton
      def create
        return unless configuration.create_rubocop?

        cli.template "%gem_name%/.rubocop.yml.tt", configuration.to_h
        cli.template "%gem_name%/lib/tasks/rubocop.rake.tt", configuration.to_h
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gemsmith-7.7.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.6.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.5.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.4.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.3.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.2.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.1.0 lib/gemsmith/skeletons/rubocop_skeleton.rb
gemsmith-7.0.0 lib/gemsmith/skeletons/rubocop_skeleton.rb