[kbn-code-owners] General improvements (#204023)

## Summary
The following improvements have been made:
- Added `--json` flag to CLI command to output result as JSON
- Terminology updated to more accurately reflect object contents
- Code owner teams are always returned as an array
- Search path validation (is under repo root, exists)
- Proper handling of inline comments
- Better logging for `scripts/check_ftr_code_owners.js`

Existing usage of the `@kbn/code-owners` package has been updated
accordingly, without modifying outcomes.
This commit is contained in:
David Olaru 2024-12-12 18:05:01 +00:00 committed by GitHub
parent 5e69fd1498
commit 0dabc52fef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 267 additions and 159 deletions

View file

@ -8,4 +8,4 @@
*/
require('../src/setup_node_env');
require('@kbn/code-owners').runGetOwnersForFileCli();
void require('@kbn/code-owners').cli.findCodeOwnersForPath();