lib/code_ownership/private.rb in code_ownership-1.32.5 vs lib/code_ownership/private.rb in code_ownership-1.32.6
- old
+ new
@@ -74,10 +74,10 @@
# The output of this function is string pathnames relative to the root.
#
sig { returns(T::Array[String]) }
def self.tracked_files
@tracked_files ||= T.let(@tracked_files, T.nilable(T::Array[String]))
- @tracked_files ||= Dir.glob(configuration.owned_globs)
+ @tracked_files ||= Dir.glob(configuration.owned_globs) - Dir.glob(configuration.unowned_globs)
end
sig { params(team_name: String, location_of_reference: String).returns(CodeTeams::Team) }
def self.find_team!(team_name, location_of_reference)
found_team = CodeTeams.find(team_name)