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.
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 | Warning |
Last modified: 08 March 2021