GoLand
 
Get GoLand
You are viewing the documentation for an earlier version of GoLand.

Create custom inspections

Last modified: 15 August 2023

To create a custom inspection, you have to configure a search and replace templates. The IDE will search for code that matches the template and will highlight it in the editor.

After that, your custom inspection is going to appear in the list of inspections. There, you can change its severity and the scope in which this inspection will run.

Custom inspection shown in the list of inspections

When your inspection is ready, you can run it. Alternatively, if the inspection is enabled, pieces of code will be highlighted automatically.

Running custom inspection