Installing the QA tools
Installing golangci-lint¶
We are using golangci-lint as a way to lint the code for problematic practices. We use golangci-li using the following command line:
golangci-lint run -E asciicheck -E bodyclose -E dupl -E errorlint -E exportloopref -E funlen
Please follow the instructions below:
- Go to the GitHub releases of golangci-lint and download the latest Linux
.tar.gz. - Extract the file to a directory in your path (e.g.
~/bin/go). - Add executable rights to the file (e.g.
chmod +x ~/bin/go/golangci-lint).
- Go to the GitHub releases of golangci-lint and download the latest Windows ZIP.
- Extract the
golangci-lint.exeto your%USERPROFILE%/go/bindirectory.
brew install golangci-lint
sudo port install golangci-lint
- Go to the GitHub releases of golangci-lint and download the latest archive for your platform.
- Extract the
golangci-lintto thego/bindirectory in your home directory.