Skip to content

Commit 4e64fdb

Browse files
arloorgopherbot
authored andcommitted
docs/tools.md: update tools.md about golangci-lint-v2
add docs about golang-lint-v2 in docs/tools.md Change-Id: I9b92442ff7076eae214ac7b6c3a17a6b62e80191 GitHub-Last-Rev: 8760349 GitHub-Pull-Request: #3966 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/734380 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Madeline Kalil <mkalil@google.com> Reviewed-by: Hongxiang Jiang <hxjiang@golang.org> Auto-Submit: Hongxiang Jiang <hxjiang@golang.org>
1 parent c4774d2 commit 4e64fdb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/tools.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ This is the default lint tool. See the [full list of checks](https://staticcheck
6666
Other options include:
6767

6868
* [`golangci-lint`]: This meta-linter combines a number of existing lint tools, including [staticcheck](#staticcheck), into one interface.
69+
* [`golangci-lint-v2`]: golangci-lint but v2.
6970
* [`revive`]: This tool is an enhancement on top of [`golint`], and it provides additional checks.
7071
* [`golint`]: This used to be the default linter used by this extension before it was officially deprecated.
7172

7273
You can use the [`"go.lintFlags"`](settings.md#go.lintFlags) setting to further configure your linter of choice. Most linters can be configured via special configuration files, but you may still need to pass these command-line flags. The configuration documentation for each supported linter is listed here:
7374

7475
* [`staticcheck`](https://staticcheck.io/docs/#configuration)
75-
* [`golangci-lint`](https://golangci-lint.run/usage/configuration/)
76+
* [`golangci-lint`](https://golangci.github.io/legacy-v1-doc/usage/configuration/)
77+
* [`golangci-lint-v2`](https://golangci-lint.run/docs/configuration/cli/)
7678
* [`revive`](https://github.com/mgechev/revive#command-line-flags)
7779

7880
#### Examples
@@ -96,7 +98,8 @@ Configure `revive` to exclude `vendor` directories and apply extra configuration
9698
[`gofmt`]: https://golang.org/cmd/gofmt/
9799
[`golint`]: https://pkg.go.dev/golang.org/x/lint/golint?tab=overview
98100
[`staticcheck`]: https://pkg.go.dev/honnef.co/go/tools/staticcheck?tab=overview
99-
[`golangci-lint`]: https://golangci-lint.run/
101+
[`golangci-lint`]: https://golangci.github.io/legacy-v1-doc/
102+
[`golangci-lint-v2`]: https://golangci-lint.run/
100103
[`revive`]: https://pkg.go.dev/github.com/mgechev/revive?tab=overview
101104
[`gopls`]: https://golang.org/s/gopls
102105
[`go`]: https://golang.org/cmd/go

0 commit comments

Comments
 (0)