Inspectopedia Help

Struct initialization without field names

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

GoStructInitializationWithoutFieldNames
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Go | Code style issues

Inspection options

Here you can find the description of settings available for the Struct initialization without field names inspection, and the reference of their default values.

Report types defined in current package

Not selected

Report struct literals without types

Not selected

Inspection Details

By default bundled with:

GoLand 2024.2, Qodana for Go 2024.2,

Can be installed with plugin:

Go, 242.22859

Last modified: 11 September 2024