1.0.3 • Published 6 years ago
codeowners-enforcer v1.0.3
codeowners-enforcer
Enforce
CODEOWNERSfiles on your repo
- Ensure that every file in your repo is owned by someone.
- Written in Rust for superb performance in even the largest repos.
Install
With npm:
npm install --global codeowners-enforcerWith Cargo:
cargo install codeowners-enforcerUsage
codeowners-enforcer works by finding your CODEOWNERS file in a known
location as defined by GitHub.
Then it walks through your file tree asserting that every file has a code owner.
If any files don't have a code owner, it will return their relative paths and
exit with 1:
codeowners-enforcerOops! Found files without CODEOWNERS!
file.one
path/to/file.two
path/to/file.three
Fix: Please delete these files, move them, or add owners to them in /path/to/CODEOWNERSIf you want to return just the file paths, pass --quiet or -q:
codeowners-enforcer --quietone.txt
path/to/two.sh
path/to/three.pyIf you want to ignore files, pass --ignore <pattern> or -i:
codeowners-enforcer --ignore "path/**/*.py"one.txt
path/to/two.shYou can also pass multiple ignores:
codeowners-enforcer -i "path/**/*.py" -i "path/**/*.sh"one.txtIf you want to only check certain files, pass <patterns...>:
codeowners-enforcer "**/*.sh" "**/*.py"path/to/two.sh
path/to/three.py