-
Notifications
You must be signed in to change notification settings - Fork 645
Conversation
README.md
Outdated
To configure revive, use: | ||
|
||
```javascript | ||
"go.lintFlags": ["-config=[PATH_TO_CONFIG.toml]"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.