Skip to content

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

Open
@Dominator008

Description

@Dominator008

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

/** @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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions