From 65369cb3e56d14bb55033da517f8a86296c568c0 Mon Sep 17 00:00:00 2001 From: Oleg Butuzov Date: Mon, 8 Feb 2021 04:19:56 +0200 Subject: [PATCH] docs(clean): replace `govet` example with `nakedret`. (#1647) --- docs/src/docs/contributing/new-linters.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docs/contributing/new-linters.mdx b/docs/src/docs/contributing/new-linters.mdx index 0320a4923d44..61173e9bffd4 100644 --- a/docs/src/docs/contributing/new-linters.mdx +++ b/docs/src/docs/contributing/new-linters.mdx @@ -19,8 +19,8 @@ After that: 3. Add the new struct for the linter (which you've implemented in `pkg/golinters/{yourlintername}.go`) to the list of all supported linters in [`pkg/lint/lintersdb/manager.go`](https://github.com/golangci/golangci-lint/blob/master/pkg/lint/lintersdb/manager.go) to the function `GetAllSupportedLinterConfigs`. Enable it by default only if you are sure. -4. Find out what options do you need to configure for the linter. For example, `govet` has - only 1 option: [`check-shadowing`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml). +4. Find out what options do you need to configure for the linter. For example, `nakedret` has + only 1 option: [`max-func-lines`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml). Choose default values to not being annoying for users of golangci-lint. Add configuration options to: - [.golangci.example.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml) - the example of a configuration file. You can also add