Skip to content

srenatus/codeclimate-govet

 
 

Repository files navigation

Code Climate Govet Engine

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

govet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string. Vet uses heuristics that do not guarantee all reports are genuine problems, but it can find errors not caught by the compilers.

Installation

  1. If you haven't already, install the Code Climate CLI.
  2. Run codeclimate engines:enable govet. This command both installs the engine and enables it in your .codeclimate.yml file.
  3. You're ready to analyze! Browse into your project's folder and run codeclimate analyze.

Building

In order to build the docker image, you first need to compile a binary for the container. To do that, first install goxc and then run

goxc -bc="linux" -tasks-=go-install,go-vet,go-test,package,archive -d=. -arch=amd64 && \
mv snapshot/linux_amd64/codeclimate-govet bin/codeclimate-govet && \
rm -rf snapshot && \
docker build -t codeclimate/codeclimate-govet .

Need help?

For help with Govet, 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.

About

Code Climate Engine for govet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%