Skip to content

Use consistent order for imports

Cameron Swords requested to merge consistent-optimize-imports into main

What does this MR do?

Add a Make target, go-fmt, which orders Go imports. The go-fmt CI job uses the same target.

Imports are ordered and grouped as follows:

import (
  // built in packages

  // other project packages

  // this project packages
)

Reference

!74 (comment 2007974006)

Edited by Cameron Swords

Merge request reports

Loading