lib/codeowner_validator/code_owners.rb
# Public: Returns the lines associated to a specific owner
#
# @param [String] owner The owner to search for patterns
# @return [Array] of <Codeowners::Checker::Group::Pattern> objects
Returns the lines associated to a specific owner
Returns the lines associated to a specific owner
def find_by_owner(owner)
      main_group.find.select do |line|
        next unless line.pattern?
        line.owner == owner
      end
    end
def find_by_owner ( owner ) main_group . find . select do | line | next unless line . pattern? line . owner == owner end end
Public: Returns the lines associated to a specific owner
Public : Returns the lines associated to a specific owner
None
Array
owner
owner The owner to search for patterns
owner The owner to search for patterns