no-istanbul-ignore
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i no-istanbul-ignore

Weekly Downloads

177

Version

0.1.0

License

MIT

Unpacked Size

34.5 kB

Total Files

19

Last publish

Collaborators

  • andyasberry