question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Ignore patterns does not work when symbol also has doccomment

See original GitHub issue

Consider this:

/**
 * Foo is foo
 */
// ts-prune-ignore-next
export const foo = 2

I’d expect ts-prune to not report on foo. However, I’m getting this output:

src/foo.ts:7 - foo

This works, though:

/**
 * Foo is foo
 * ts-prune-ignore-next
 */
export const foo = 2;

This is a bit unfortunate, because this causes ts-prune-ignore-next to show up in the hover tooltip in my IDE. I’d expect ts-prune to work the same way as eslint, where disable comments can be below doccomments, in the inline form.

Thanks for creating a great tool!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
torkelrogstadcommented, Aug 24, 2020

#80 should do to the trick. Thanks for pointing me in the right direction!

0reactions
github-actions[bot]commented, Aug 27, 2020

🎉 This issue has been resolved in version 0.7.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

file_header should ignore doc comments · Issue #1719 - GitHub
My file_header config is: file_header: forbidden_pattern: ".?" I.e. forbid file headers. But I have some types with documentation comment on ...
Read more >
regex - Pylint ignore-patterns Not Working - Stack Overflow
So, tmplocal.py , tmp.local.py , tmp_local.py , local_tmp.py , etc. When running Pylint (1.7.2), these files are not ignored. Any suggestions?
Read more >
How to Write Doc Comments for the Javadoc Tool - Oracle
This document describes the style guide, tag and image conventions we use in documentation comments for Java programs written at Java Software, ...
Read more >
Options - TypeDoc
When TypeDoc loads a tsconfig.json file, it also will read TypeDoc options ... Removes symbols from the generated documentation which do not have...
Read more >
Documentation comments - C# language specification
A conforming C# compiler is not required to check the syntax of ... character on the second line is an ASTERISK and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found