QL for Eclipse is a plugin that allows you to write and run QL queries locally in your IDE. These topics explain how to run custom queries on project snapshots using the QL for Eclipse plugin.
LGTM for Eclipse is a separate plugin for downloading alerts from LGTM, so that you can fix them easily in your IDE. For more information about this plugin, see IDE integration for LGTM.
QL for Eclipse is available as:
- A free-to-use version, which uses the same QL libraries and tools as LGTM.com, and can be downloaded by anyone.
- A licensed version, which uses the same QL libraries and tools as the matching version of LGTM Enterprise, and can be downloaded by users with an appropriate license.
If you have a suitable license, you can download both versions of QL for Eclipse. The most suitable version to use depends on how recently the snapshot that you want to analyze was built. For more information, see the sections below.
You can analyze open source projects using the free-to-use QL for Eclipse. Download this version, along with snapshots to analyze, from LGTM.com.
Both LGTM.com and the free-to-use QL for Eclipse are frequently updated to use the most up-to-date QL libraries and tools. So to ensure you can always analyze new snapshots downloaded from LGTM.com, it's a good idea to regularly update your free-to-use QL for Eclipse plugin.
For installation instructions, see Installing the free-to-use QL for Eclipse plugin.
If you already have Eclipse installed, you can install QL for Eclipse as a plugin. If you don't have Eclipse installed, you can either:
- Install the standalone version of QL for Eclipse (available for Windows, Linux, and macOS).
- Install Eclipse (available from https://www.eclipse.org/downloads), and then install the QL for Eclipse plugin.
For a summary of useful Eclipse commands, see Eclipse tips for new users.