Ensures the correctness of your CODEOWNERS file.
The Codeowners Validator is available as a GitHub CLI extension.
gh extension install mszostok/gh-validate-codeowners
env REPOSITORY_PATH="." \
EXPERIMENTAL_CHECKS="notowned" \
CHECKS="files,duppatterns,syntax" \
gh validate-codeowners
Check the Configuration section for more info on how to enable and configure given checks.