Go Shell Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
bin
.codeclimate.yml
.gitignore
Dockerfile
LICENSE
Makefile
README.md
codeclimate-golint.go
engine.json

README.md

Code Climate Golint Engine

codeclimate-golint is a Code Climate engine that wraps Golint. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.

Golint is a linter for Go code. Where as Gofmt automatically reformats code, Golint suggests style issues that may need to be addressed.

Installation

  1. If you haven't already, install the Code Climate CLI.
  2. Add the following to yout Code Climate config:
plugins:
  golint:
    enabled: true
  1. Run codeclimate engines:install
  2. You're ready to analyze! Browse into your project's folder and run codeclimate analyze.

Configuration

Like the golint binary, you can configure the minimum confidence threshold of this engine: issues reported by golint must have a confidence value higher than the threshold in order to be reported. The default value is 0.8, the same as golint: you can configure your own threshold in your .codeclimate.yml:

plugins:
  golint:
    enabled: true
    config:
      min_confidence: 0.1

Building

make image

Updating

golint doesn't version releases, so in order to get the latest version & force a new docker image build, we have to update the engine.json file.

make update

This will update the engine version with the latest golint version. After that rebuild the image as usually.

Need help?

For help with Golint, check out their documentation.

If you're running into a Code Climate issue, first look over this project's GitHub Issues, as your question may have already been covered. If not, go ahead and open a support ticket with us.