188

🚧

This plugin is now deprecated

The golint plugin is now deprecated and unmaintained.

Language / Framework: Go
Checks: 22
Categories: Style
Go Version: 1.9.2

golint was created by the Go team at Google. It is a linter for Go code that suggests style issues that may need to be addressed.

Enable the Plugin

To enable golint for your project, add the following to your .codeclimate.yml configuration file:

plugins:
  golint:
    enabled: true

More information about the CLI is available in the README here: https://github.com/codeclimate/codeclimate

Configure the Plugin

Golint assigns a confidence score to issues it finds: you can configure the minimum confidence of issues to report. The default value is 0.8.

plugins:
  golint:
    enabled: true
    config:
      min_confidence: 0.9

Understand the Plugin

"Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes."

"Golint differs from govet. Govet is concerned with correctness, whereas golint is concerned with coding style. Golint is in use at Google, and it seeks to match the accepted style of the open source Go project."

From the official documentation.