GoLand 2020.1 Help

Code Inspections in Go modules

This topic lists all GoLand code inspections available in Go modules.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of the Settings/Preferences Ctrl+Alt+S.

Inspection

Description

Default Severity

Unused dependency

Reports unused dependencies.

For each dependency in the current go.mod file, this inspection searches for any import statement starting with the dependency name in all .go files. If no such import is found then dependency is unused. Inspection doesn't consider indirect dependencies. They are marked with // indirect comment.

Warning Warning
Last modified: 16 May 2020