-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Java: support LGTM alert suppression using @SuppressWarnings
annotations
#2152
Java: support LGTM alert suppression using @SuppressWarnings
annotations
#2152
Conversation
Testing using a full LGTM distribution build revealed no performance (or other) issues. |
@Semmle/doc this affects documentation of alert suppression: In addition to alert suppression using comments, LGTM now supports alert suppression for Java analysis using |
@yh-semmle - can you clarify what a method is? An example might help me here (to be included in the help, with an example of annotation for a method, and an existing Java query). Thanks. |
Thanks for the mention @yh-semmle |
The existing alert suppression documentation at https://lgtm.com/help/lgtm/alert-suppression#java gives the following example for suppression comments:
The alert can now also be suppressed as follows:
Note that this will suppress all alerts for this query in the above method (Java terminology for "function" in other languages), not just on the line where the suppression comment was located. Note that |
Thanks for the info @yh-semmle 👍 |
Supports alert suppression of the form
@SuppressWarnings("lgtm[query-id]")
.