Sha256: da164dae4b329f9efc0045fb9fc70fedee4e167807f79ca3aaff233c527da932

Contents?: true

Size: 390 Bytes

Versions: 3

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates Reek support.
    class Reek < Base
      def run
        return unless configuration.dig(:generate, :reek)

        cli.uncomment_lines "#{gem_name}/Rakefile", /require.+reek.+/
        cli.uncomment_lines "#{gem_name}/Rakefile", /Reek.+/
        template "%gem_name%/.reek.tt"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-12.1.0 lib/gemsmith/generators/reek.rb
gemsmith-12.0.0 lib/gemsmith/generators/reek.rb
gemsmith-11.3.0 lib/gemsmith/generators/reek.rb