Sha256: 6d1762c36eddb7f624c0f296c8bf737c6bfa884e79df8a63779b87f9d3d750c3

Contents?: true

Size: 412 Bytes

Versions: 17

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates Reek support.
    class Reek < Base
      def run
        if configuration.dig :generate, :reek
          template "%gem_name%/.reek.yml.tt"
        else
          cli.gsub_file "#{gem_name}/Rakefile", /require.+reek.+\n/, ""
          cli.gsub_file "#{gem_name}/Rakefile", /Reek.+\n/, ""
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gemsmith-15.5.0 lib/gemsmith/generators/reek.rb
gemsmith-15.4.0 lib/gemsmith/generators/reek.rb
gemsmith-15.3.0 lib/gemsmith/generators/reek.rb
gemsmith-15.2.0 lib/gemsmith/generators/reek.rb
gemsmith-15.1.1 lib/gemsmith/generators/reek.rb
gemsmith-15.1.0 lib/gemsmith/generators/reek.rb
gemsmith-15.0.0 lib/gemsmith/generators/reek.rb
gemsmith-14.11.0 lib/gemsmith/generators/reek.rb
gemsmith-14.10.1 lib/gemsmith/generators/reek.rb
gemsmith-14.10.0 lib/gemsmith/generators/reek.rb
gemsmith-14.9.0 lib/gemsmith/generators/reek.rb
gemsmith-14.8.0 lib/gemsmith/generators/reek.rb
gemsmith-14.7.0 lib/gemsmith/generators/reek.rb
gemsmith-14.6.0 lib/gemsmith/generators/reek.rb
gemsmith-14.5.0 lib/gemsmith/generators/reek.rb
gemsmith-14.4.0 lib/gemsmith/generators/reek.rb
gemsmith-14.3.0 lib/gemsmith/generators/reek.rb