google / google/closure-compiler

Unable to suppress jsDoc warning with npm google-closure-compiler

Open
#3,487 7 comments 0 reactions 0 assignees View on GitHub
internal-issue-created
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

When using npm [google-closure-compiler 20190929.0.0](https://www.npmjs.com/package/google-closure-compiler), if a comment contains invalid jsDoc, the warning cannot be suppressed with compiler option `{ jscomp_off: "*" }`.

Warning message:
```
Input_0:3 (JSC_PARSE_ERROR)

Parse error. illegal use of unknown JSDoc tag "note"; ignoring it
```

Minimal example available at https://github.com/mattwomple/closure-jsdoc-note-error .
Run `node compile.js` to compile `closure-note.js` and output `result.json`.

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.