You can customize rules according to which GoLand inspects your code.

Open settings &shortcut:ShowSettings; and navigate to Editor | Inspections. Select the rules that you want to apply during code inspection. Alternatively, clear the checkbox if you want to ignore the rule.

Disable and enable code inspections

GoLand tips of the day, build 2078