Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Question: how to specify an explicit list of linters? #49

Closed
fatih opened this issue Sep 28, 2015 · 3 comments
Closed

Question: how to specify an explicit list of linters? #49

fatih opened this issue Sep 28, 2015 · 3 comments

Comments

@fatih
Copy link
Contributor

fatih commented Sep 28, 2015

I couldn't find it on the help page, please feel free to close if this is a duplicate. Basically I'm searching for an option to explicitly define linters. So gometalinters should only invoke certain linters. These should be passed via a flag option. Is it possible? An example usage I would like to have (if possible):

gometalinter --enabled-linters="govet,golint" ./...

There is an option called --linter but it only allows to specify a single linter. The option --enable just enables previously disabled linters. I would want probably something which doesn't rely on any kind of config, and if there is any need of config I should pass them via a flag.

Btw, I need this so I can integrate this into vim-go. Currently gometalinter calls all possible linters and because vim-go is blocking by default it's just to slow. I want to have a predefined set of linters which I'm going to add it and a way to pass linters as a configuration to vim.

@alecthomas
Copy link
Owner

Hi there. You want:

gometalinter --disable-all -E<linter> -E<linter> ...

Feel free to reopen if this doesn't answer your question completely.

@fatih
Copy link
Contributor Author

fatih commented Sep 29, 2015

Thanks @alecthomas. I've started and successfully integrated it into vim-go. I'm still working on it. I'll let you know when I'm finished and we can update the Readme. fatih/vim-go#553

@alecthomas
Copy link
Owner

Looking good, thanks very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants