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

Make it easier to go from an errors/warnings to @suppress tag #4114

Open
lauraharker opened this issue Aug 29, 2023 · 0 comments
Open

Make it easier to go from an errors/warnings to @suppress tag #4114

lauraharker opened this issue Aug 29, 2023 · 0 comments
Labels

Comments

@lauraharker
Copy link
Contributor

Compiler warnings like WARNING - [JSC_UNREACHABLE_CODE] unreachable code may often be suppressed by finding the corresponding diagnostic group and adding a @suppress tag, in this case @suppress {uselessCode}.

We document the corresponding diagnostic groups at https://github.com/google/closure-compiler/wiki/@suppress-annotations#error-to-suppression-map but we would ideally make it even easier for users to suppress these kinds of warnings.

One idea is printing the diagnostic group uselessCode in the error message.

This came up in #4113.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant