# frozen_string_literal: true require_relative '../project' module GitlabCodeownersChecker module Checkers class NoOwner def initialize(files:, codeowners:) @files = files @codeowners = codeowners end def files_without_owner @files_without_owner ||= @files.each_with_object([]) do |f, acc| acc.push(f) unless @codeowners.patterns.find { |p| p.match?(f) } end end end end end