-
Notifications
You must be signed in to change notification settings - Fork 646
Optionally enable go-metalinter support? #17
Comments
Sounds like a great idea. Should be easy to add support for that either as the default linter or as an option to use instead of discreet lint/vet. |
Open to PR's adding support for this. I'd suggest adding a A further step would be to make it the default. I think we should wait on that, since the acquisition experience for |
this would be awesome ! |
I came here because I wanted to propose support for https://github.com/alecthomas/gometalinter, too :) |
@lukehoban output of |
@sijad Feel free to propose an update to the regexp to make sure |
There is an PR for this.Wondering what is the progress on that? @sijad @lukehoban |
|
@lukehoban JSON parsing helps ? |
I suggest to look into how some of the existing linters are implemented for VS Code. ESLint is a good example vscode-eslint, tslint, and jshint are implemented in the same way. The idea is to implement a linter as a language server. The language server is kept a live and receives buffer change requests from VS Code (over JSON RPC), runs the linter (in proc) on the changed buffer, and returns the errors diagnostics back to VS Code. Doing the linting inside a server avoids that a new process is restarted for each validation as the user types. |
#294 is almost finished, it just need a review I guess |
Nice. This implementation spawns a new process for each linting pass. Since the linter is native code and since this is only done on save this might not be too bad for the batteries. |
This issue can be closed now that the feature is implemented and documented :) |
Indeed. Thanks @sijad. |
Currently, Metalinter is extremely useful linter.
Go Vet, Go Lint and other highly useful tools are included
As it provides massaged output of composite linters, is it possible to use it as (optional) replacement/enchancement for aforementioned Vet and Lint tools?
The text was updated successfully, but these errors were encountered: