golangci offers a "--fix" option
There fixed when possible.
openshift/cluster-monitoring-operator#2275: MON-3789: add a golangci-lint-fix makefile target to fix golangci-lint errros when possible