google / google/closure-compiler

Allow more kinds of @suppress on non-function nodes.

Open
#1,615 4 comments 0 reactions 1 assignee Claimed by @MatrixFrog View on GitHub
Documentation enhancement
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Most of the lint warnings from Closure Library are "@suppress is not allowed here", and many of the use cases seem reasonable to me. Eg.:

``` js
/** @suppress {unusedLocalVariables} */
var dummy = 3;
```

We also need to document where @suppress is actually allowed, pending TODO by @MatrixFrog in https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/lint/CheckJSDocStyle.java#L45-L48.

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.