Socket
Socket
Sign inDemoInstall

no-istanbul-ignore

Package Overview
Dependencies
106
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    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


Version published
Weekly downloads
175
decreased by-10.71%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 01 Oct 2021

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