PhpStorm 2020.2 Help

Closure Linter

When Closure Linter support is enabled, PhpStorm highlights errors that Closure Linter detects, provides descriptions for them, and suggests quick-fixes where possible.

Error descriptions and quick-fixes are available from the editor and from the Problems tool window. To open the tool window, click the Inspection widget in the upper-right corner of the editor:

Inspection widget

See View problems and apply quick-fixes in the editor and Problems tool window for details.

Before you start

  1. Download and install Python as described on the Python official website.

  2. Install and enable the Closure Linter plugin on the Settings/Preferences | Plugins page as described in Installing plugins from JetBrains repository.

  3. Download and install Closure Linter as described on the Closure official website.

Enable Closure Linter and configure its behavior in PhpStorm

  1. Open the Settings/Preferences dialog Ctrl+Alt+S, go to Languages and Frameworks | JavaScript | Code Quality Tools | Closure Linter, select the Enable checkbox. After that all the controls on the page become available.

  2. Specify the path to the Closure Linter executable file:

    • <Python_home>\Scripts\gjslint.exe for Windows

    • /usr/local/bin/gjslint for Linux and macOS

  3. Specify the path to the previously created configuration file with Closure Linter flags.

Last modified: 09 July 2020