Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jasonpolites opened this issue Sep 23, 2024 · 0 comments
Open

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

jasonpolites opened this issue Sep 23, 2024 · 0 comments

Comments

@jasonpolites
Copy link

  • 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:

/* 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:

class Foo {
  /* c8 ignore next */
  foo() {  // <== ignored!
    console.log('bar'); // <== not ignored :(
  } // <== not ignored :(
} // <== not ignored :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant