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]").