LGTM Enterprise 1.24.1

My alerts

All users who contribute to at least one project that's analyzed by LGTM, have a personalized alerts list: My alerts. Click My alerts in the menu bar to display the page (if the option is missing, check that you're logged in).

The notice at the top shows when the data displayed on this page was last updated.

Some data may be incomplete or missing if sparse analysis or upload analysis is enabled for the project.

This page shows your personalized alerts list. Alerts are split into two types:

  • Alerts introduced by you ( below)—alerts in code you contributed, that are still present (active) in the latest version of the project analyzed. Tagged with your profile icon.
  • Suggested alerts ( below)—other alerts, which you did not introduce, but which your commit history indicates you might be interested in fixing.

Alerts introduced by you vs suggested alerts

Your alerts are populated by LGTM's alert attribution process. Since you wrote the code where the problem is highlighted, you are probably the best qualified person to fix the issue.

Filtering alerts

The page is organized with the most interesting alerts at the top. Above the alert breakdown (purple banner), there's an Alert filters section containing controls for saving and reusing filters ( below), as well as a filter bar ( below) with two check boxes to control how any matching alerts are displayed.

Use the three query filters on the left (Severity, Query and Tag) to narrow down the display to the alerts you are interested in.

Note that you can also filter alerts by severity without using the Severity query filter. Simply click the severity of interest on the banner containing the alert breakdown ( below).

The alert breakdown reflects the currently selected filters. If no filter is selected, it shows all the alerts present in that revision of the project.

You can also filter alerts by project ( below) , temporarily hide the suggested alerts ( below) or group alerts by query ( below).

Filtering alerts

For more information, see Alert filtering.

Exploring alerts

My alerts list

The collection of tags specified for a query is shown close to the query name.

Hover over the tags or ellipsis to show a tooltip containing all the tags for the query (note that the ellipsis is only present if some of the tags are not displayed on screen).

Click the arrow to display a description of the query, a link to the help, and a link to open the query in the query console.

Hover over the alert message to highlight the associated code.

The commit identifier where the problem was introduced. This is only displayed for alerts where LGTM can accurately determine when the alert was introduced (see Alert attribution for details).

Click to display the analysis of that commit.

By default, this opens in the current window—you may prefer to right-click and use the context menu to open in a new tab or window.

There are three icons in the top right corner of the alert message:

  • Click the eye with a cross through it () to open a section with advice on what to do if you believe this alert should not be flagged, or if you don't want to see this alert any more. Click the eye symbol again to collapse the section.
  • Click the question mark () to display the full help for the query.
  • Click the arrow () to open the whole file in the code viewer and jump to the alert.

If you think an alert is incorrectly reported, let us know via your LGTM administrator. See What if I see a false positive? for details. On the other hand, if an individual alert is valid but not worth fixing, add a suppression comment to the corresponding line of code, or a @SuppressWarnings annotation for the relevant code element (Java codebases only). LGTM will no longer report that alert. See Alert suppression for more information.