Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gitblacklist

0.1.0 • Public • Published

GIT blacklist checker


GIT - pre-commit check and reject certain words/phrases/functions commit into git repository.

Install

$ npm install gitblacklist -g

Usage

$ gitblacklist init

Configuration

gitblacklist use following blacklist files to definition blacklist for certain words/phrases/functions.

  • REPO_ROOT/.gitblacklist.[ext]
  • REPO_ROOT/.gitblacklist
  • ~/.gitblacklist.[ext]
  • ~/.gitblacklist

description:

  • REPO_ROOT/.gitblacklist.[ext] and ~/.gitblacklist.[ext] is for specifically filetype.
  • .gitblacklist and ~/.gitblacklist is for all of files.
  • REPO_ROOT/.gitblacklist.[ext] and REPO_ROOT/.gitblacklist is for current repository.
  • ~/.gitblacklist.[ext] and ~/.gitblacklist is for all of current user's repository.

Pre-line a certain words/phrases/functions.

Example

To check for "TODO" or "FIXME" in a java file, create the file {REPO_ROOT}/.gitblacklist.java containing the two lines:

TODO
FIXME

Bugs

For any bugs, please visit issues

Keywords

install

npm i gitblacklist

Downloadsweekly downloads

1

version

0.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar