Skip to content

storvik/flymake-golangci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

flymake-golangci

Flymake backend for golangci-lint. My go to Go linter! Pun intended.

Installation

Installation using straight.el or elpaca.

(use-package flymake-golangci
  :elpaca (flymake-golangci :host github :repo "storvik/flymake-golangci")             ;; using elpaca
  :straight (flymake-golangci :type git :host github :repo "storvik/flymake-golangci") ;; using straight
  :hook ((eglot-managed-mode . (lambda ()
                                (when (derived-mode-p '(go-mode go-ts-mode))
                                  (flymake-golangci-load-backend)))) ;; using flymake-golangci with eglot
         (go-mode . flymake-golangci-load-backend)                   ;; using flymake-golangci with go-mode
		 (go-ts-mode . flymake-golangci-load-backend)))              ;; using flymake-golangci with go-ts-mode

Note that this config does not enable flymake or eldoc automatically.

Thanks to

flymake-ruff, for inspiration!

About

Flymake backend for golangci linter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published