Flycheck checker for golangci-lint
M-x package-install flycheck-golangci-lint
M-x package-install-file
Add the following lines to your config
(eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-golangci-lint-setup))
If you have use-package
installed
(use-package flycheck-golangci-lint
:ensure t
:hook (go-mode . flycheck-golangci-lint-setup))
--config
(default: nil
)
(setq flycheck-golangci-lint-config "path/to/config")
--deadline
(default: 1m
)
(setq flycheck-golangci-lint-deadline "1m")
--tests
(default: nil
)
(setq flycheck-golangci-lint-tests t)
--fast
(default: nil
)
(setq flycheck-golangci-lint-fast t)
Pull requests are welcomed :)