lib/code_ownership/private.rb in code_ownership-1.32.0 vs lib/code_ownership/private.rb in code_ownership-1.32.1

- old
+ new

@@ -23,9 +23,17 @@ def self.configuration @configuration ||= T.let(@configuration, T.nilable(Configuration)) @configuration ||= Configuration.fetch end + # This is just an alias for `configuration` that makes it more explicit what we're doing instead of just calling `configuration`. + # This is necessary because configuration may contain extensions of code ownership, so those extensions should be loaded prior to + # calling APIs that provide ownership information. + sig { returns(Configuration) } + def self.load_configuration! + configuration + end + sig { void } def self.bust_caches! @configuration = nil @tracked_files = nil @files_by_mapper = nil