repo/codeowners
CODEOWNERS names reviewers
| Severity | info |
| Tiers | 1 |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
A CODEOWNERS file exists at the root or in .github/, .gitlab/, docs/ or .gitea/; the paths and owners in it are not checked.
Why
Review ownership that lives in people’s heads does not survive a holiday.
Check
file("CODEOWNERS") || file(".github/CODEOWNERS") || file("docs/CODEOWNERS") || file(".gitea/CODEOWNERS") || file(".gitlab/CODEOWNERS")Fix
Add .github/CODEOWNERS with a default owner line, so review requests for every path reach someone.
Agent instruction: Add .github/CODEOWNERS containing * @<owner> and commit.
A finding that names no file points at .github/CODEOWNERS.
Sources
- https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners (guidance)
- https://docs.gitlab.com/user/project/codeowners/ (spec)
- https://fleetlint.org/baseline/#hygiene
Generated by fleetlint docs from catalog v0.8.0.