Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 602 Bytes

no-ignore-file.md

File metadata and controls

30 lines (18 loc) · 602 Bytes

Disallow disabling coverage for whole files (no-ignore-file)

This rule raises a warning about "istanbul ignore file" comments.

Rule Details

The rule finds all comments starting with istanbul ignore file and raises a warning.

The following patterns are considered warnings:

/* istanbul ignore file */

/* istanbul ignore file: lazy to write tests */

// istanbul ignore file

// istanbul ignore file: lazy to write tests

These patterns would not be considered warnings:

/* istanbul ignore next */

/* istanbul ignore if: lazy to write tests */

// istanbul ignore else