Sha256: 0c601b754a115cfca265714ba041a20fd3a6d7d5771b58442f9f101bf9eec8fe

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

# typed: strict

require 'danger-packwerk/private/ownership_information'
require 'constant_resolver'

module DangerPackwerk
  #
  # Anything within the Private module is subject to change.
  #
  module Private
    extend T::Sig

    sig { returns(ConstantResolver) }
    def self.constant_resolver
      @constant_resolver = T.let(@constant_resolver, T.nilable(ConstantResolver))
      @constant_resolver ||= begin
        load_paths = Packwerk::RailsLoadPaths.for(Dir.pwd, environment: 'test')
        ConstantResolver.new(
          root_path: Dir.pwd,
          load_paths: T.unsafe(load_paths).keys
        )
      end
    end
  end

  private_constant :Private
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danger-packwerk-0.14.1 lib/danger-packwerk/private.rb
danger-packwerk-0.14.0 lib/danger-packwerk/private.rb
danger-packwerk-0.13.0 lib/danger-packwerk/private.rb