Socket
Socket
Sign inDemoInstall

codeowners-enforcer

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    codeowners-enforcer

Enforce CODEOWNERS files on your repo


Version published
Weekly downloads
690
increased by12.93%
Maintainers
1
Install size
8.38 MB
Created
Weekly downloads
 

Readme

Source

codeowners-enforcer

Enforce CODEOWNERS files 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-enforcer

With Cargo:

cargo install codeowners-enforcer

Usage

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-enforcer
Oops! 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/CODEOWNERS

If you want to return just the file paths, pass --quiet or -q:

codeowners-enforcer --quiet
one.txt
path/to/two.sh
path/to/three.py

If you want to ignore files, pass --ignore <pattern> or -i:

codeowners-enforcer --ignore "path/**/*.py"
one.txt
path/to/two.sh

You can also pass multiple ignores:

codeowners-enforcer -i "path/**/*.py" -i "path/**/*.sh"
one.txt

If you want to only check certain files, pass <patterns...>:

codeowners-enforcer "**/*.sh" "**/*.py"
path/to/two.sh
path/to/three.py

Keywords

FAQs

Last updated on 28 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc