GoLand 2021.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 IDE settings Ctrl+Alt+S.

InspectionDescriptionDefault 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: 08 March 2021