Code Climate Gofmt Engine
codeclimate-gofmt is a Code Climate engine that wraps Gofmt. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
Gofmt automatically formats Go code.
- If you haven't already, install the Code Climate CLI.
- Add the following to your Code Climate config:
plugins: gofmt: enabled: true
- You're ready to analyze! Browse into your project's folder and run
This will build a
codeclimate/codeclimate-gofmt image locally.
gofmt is a part of the Go distribution and shares version with it. Once in a
while a new version of Go gets packaged. In order to get the latest version
and force a new docker image build, please update the base image in the
Dockerfile. Please avoid any unstable tags such as
latest and keep it
For help with Gofmt, check out their documentation.