Skip to content

Add a formatting check for Go projects

Brian Williams requested to merge bwill/go-fmt into master

What does this MR do?

Formatting and style conventions should be enforced by a linter rather than a human reviewer. Recently in gitlab-org/security-products/analyzers/cluster-image-scanning!14 (comment 709714144), I noticed that ci-templates does not perform go fmt checks. This MR adds a new job that fails if any files would be changed by go fmt.

Tested with: gitlab-org/security-products/analyzers/cluster-image-scanning!15 (closed)

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Brian Williams

Merge request reports