bcoe / bcoe/c8

/* c8 ignore next */ does not ignore classes or functions

Open
#544 6 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
JavaScript
Stars
2.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

* **Version**: v22.9.0
* **Platform**: Ubuntu 20.04.6 LTS

The `/* c8 ignore next */` comment annotation does not seem to ignore classes or functions.

By contrast, the `/* istanbul ignore next */` annotation will ignore classes, functions, blocks and lines.

For example:

```javascript
/* c8 ignore next */
class Foo { // <== ignored!
foo = 'foo'; // <== not ignored :(
bar = 'bar'; // <== not ignored :(
} // <== not ignored :(
```
Ideally the `ignore next` would ignore the entire block, function, or class

Similarly:

```javascript
class Foo {
/* c8 ignore next */
foo() { // <== ignored!
console.log('bar'); // <== not ignored :(
} // <== not ignored :(
} // <== not ignored :(
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.