Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: distinguish unowned and unmatched files #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ti-mo
Copy link

@ti-mo ti-mo commented Jul 24, 2024

This commit adds a distinction between files that are not owned by anyone and files that are not matched by any rule in the CODEOWNERS file.

Useful for linting CODEOWNERS files and avoiding accidental gaps in ownership assignment.

This commit adds a distinction between files that are not owned by anyone and
files that are not matched by any rule in the CODEOWNERS file.

Example output:

```
Documentation/crdlist.rst                                               (unowned)
Documentation/helm-values.rst                                           (unowned)
proxylib/libcilium.so                                                   (unmatched)
proxylib/libcilium.so.1                                                 (unmatched)
proxylib/libcilium.so.h                                                 (unmatched)
```

To preserve as much of the existing behaviour as possible, the -u flag shows both
unowned and unmatched files, while the -m flag narrows the output down to only
unmatched files.

Signed-off-by: Timo Beckers <timo@incline.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant