Skip to content

ci: Add `go fmt` check to the CI pipeline

Brian Williams requested to merge bwill/add-go-fmt-checks into main

Description

Per our code review guidelines:

Enforcing and improving code style should be primarily done through automation instead of review comments.

The checking of formatting is easily automated. This MR adds a new CI job to check that all files are properly formatted, so that formatting issues can be called out by the pipeline instead of by code reviewers.

Related Issues

N/A

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
Edited by Brian Williams

Merge request reports