Flycheck checker for gometalinter
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Initial commit Nov 30, 2015
README.md Optional configuration file support Apr 24, 2018
flycheck-gometalinter.el Optional configuration file support Apr 24, 2018

README.md

MELPA StableMELPA

Flycheck checker for golang using gometalinter

This package provides flycheck checker for golang.

Installation

Install gometalinter and install all available checkers with:

gometalinter --install --update

Manually Installation

Copy flycheck-gometalinter.el file to load-path and add to init.el.

(require 'flycheck-gometalinter)
(eval-after-load 'flycheck
  '(add-hook 'flycheck-mode-hook #'flycheck-gometalinter-setup))

Install with Melpa

This package is available in Melpa and Melpa Stable, can be installed with package-install command.

For use-package user:

(use-package flycheck-gometalinter
  :ensure t
  :config
  (progn
    (flycheck-gometalinter-setup)))

Configuration

;; skips 'vendor' directories and sets GO15VENDOREXPERIMENT=1
(setq flycheck-gometalinter-vendor t)
;; only show errors
(setq flycheck-gometalinter-errors-only t)
;; only run fast linters
(setq flycheck-gometalinter-fast t)
;; use in tests files
(setq flycheck-gometalinter-test t)
;; disable linters
(setq flycheck-gometalinter-disable-linters '("gotype" "gocyclo"))
;; Only enable selected linters
(setq flycheck-gometalinter-disable-all t)
(setq flycheck-gometalinter-enable-linters '("golint"))
;; Set different deadline (default: 5s)
(setq flycheck-gometalinter-deadline "10s")
;; Use a gometalinter configuration file (default: nil)
(setq flycheck-gometalinter-config "/path/to/gometalinter-config.json")