Sha256: ff8955f38fa306a1fcdcc101a562acc8767cc1e589a5cdbaca445d2a912aeddf

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    # Builds project skeleton Reek code quality support.
    class Reek < Abstract
      using Refinements::Struct

      def call
        return configuration unless configuration.build_reek

        builder.call(configuration.merge(template_path: "%project_name%/.reek.yml.erb")).render
        configuration
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/builders/reek.rb
rubysmith-6.9.0 lib/rubysmith/builders/reek.rb