Add flycheck-golangci-lint

This plugin runs
[golangci-lint](https://github.com/golangci/golangci-lint) in the
background and gathers the results in a checker.
This commit is contained in:
Gerry Agbobada 2019-10-30 09:36:05 +01:00
parent d407b3355a
commit 70e7b8a388
3 changed files with 14 additions and 0 deletions

View file

@ -68,3 +68,8 @@
:config
(set-company-backend! 'go-mode 'company-go)
(setq company-go-show-annotation t))
(use-package! flycheck-golangci-lint
:when (featurep! :tools flycheck)
:hook (go-mode . flycheck-golangci-lint-setup)
:config (setenv "GO111MODULE" "on"))