Sha256: 316c744f7f53884211c716a4d4ef66781ecc01e5cd1ff4295d6710ccd4254a87

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 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.yml.tt"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gemsmith-13.1.0 lib/gemsmith/generators/reek.rb
gemsmith-13.0.0 lib/gemsmith/generators/reek.rb
gemsmith-12.4.0 lib/gemsmith/generators/reek.rb
gemsmith-12.3.0 lib/gemsmith/generators/reek.rb
gemsmith-12.2.0 lib/gemsmith/generators/reek.rb