Add support for revive as lintTool#1699
Conversation
README.md
Outdated
| To configure revive, use: | ||
|
|
||
| ```javascript | ||
| "go.lintFlags": ["-config=[PATH_TO_CONFIG.toml]"] |
There was a problem hiding this comment.
Users might want to use the ${workspaceFolder} or ${workspaceRoot} variables for the config file. We support this for the config file used by gometalinter. You might want to do something similar for revive.
See https://github.com/Microsoft/vscode-go/blob/master/src/goLint.ts#L67
There was a problem hiding this comment.
Just updated the readme & tested the ${workspaceRoot}/${workspaceFolder} support locally. Everything seems to be functioning correctly.
|
@mgechev are you going to fix this feedback so we can try it out? Keen to use this! Cheers |
4a259e7 to
c264736
Compare
|
Thanks for the PR! I'll update this thread soon with steps to try this out before I release the next update. |
|
To test this,
|
|
@ramya-rao-a verified that everything works as expected. Tested the config file as well 💯 |

Introduces support for revive. Revive is an extensible, configurable, and faster alternative of golint.