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