0.1.0 • Published 3 years ago

no-istanbul-ignore v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

no-istanbul-ignore

A simple CLI that checks for the existence of "istanbul" in a project. If found, it fails and lists all occurrences. In most occurrences, these are likely comments bypassing code coverage. Use the exclude argument to ignore occurrences in specific glob patterns.

Great for keeping your code clean and free of "ignore" comments; discourages deviations from your code coverage configuration.

Installation

You may not need to install it as a dependency (see "Usage" below), but if you do:

npm

npm install --save-dev no-istanbul-ignore

yarn

yarn add -D no-istanbul-ignore

Usage

npx no-istanbul-ignore <dir> [--exclude=glob]

minimatch is used for glob patterns.

Examples

Checking your src directory, excluding JS config files:

npx no-istanbul-ignore src --exclude="*.config.js"

License

MIT - see LICENSE