async parseAllOwnersRules() {
    const ownersPaths = await this.repo.findOwnersFiles();
    const rules = [];
    const errors = [];

    for (const ownersPath of ownersPaths) {
      const fileParse = await this.parseOwnersFile(ownersPath);
      rules.push(...fileParse.result);
      errors.push(...fileParse.errors);
    }

    return {
      result: rules,
      errors,
    };
  }
/**
   * Parse all OWNERS rules in the repo.
   *
   * TODO: Replace this with `parseAllOwnersRulesForFiles` to reduce OWNERS file
   * reads
   *
   * @return {!OwnersParserResult<!Array<!OwnersRule>>} a list of all rules
   *     defined in the local repo.
   */
Parse all OWNERS rules in the repo.
TODO: Replace this with `parseAllOwnersRulesForFiles` to reduce OWNERS file
reads

@return {!OwnersParserResult>} a list of all rules
defined in the local repo.
Parse all OWNERS rules in the repo . TODO : Replace this with ` parseAllOwnersRulesForFiles ` to reduce OWNERS file reads @return { !OwnersParserResult > } a list of all rules defined in the local repo .
async parseAllOwnersRules() {
    const ownersPaths = await this.repo.findOwnersFiles();
    const rules = [];
    const errors = [];
    for (const ownersPath of ownersPaths) {
      const fileParse = await this.parseOwnersFile(ownersPath);
      rules.push(...fileParse.result);
      errors.push(...fileParse.errors);
    }
    return {
      result: rules,
      errors,
    };
  }
async parseAllOwnersRules ( ) { const ownersPaths = await this . repo . findOwnersFiles ( ) ; const rules = [ ] ; const errors = [ ] ; for ( const ownersPath of ownersPaths ) { const fileParse = await this . parseOwnersFile ( ownersPath ) ; rules . push ( ... fileParse . result ) ; errors . push ( ... fileParse . errors ) ; } return { result : rules , errors , } ; }
Parse all OWNERS rules in the repo.
Parse all OWNERS rules in the repo .