Skip to content

Commit 65369cb

Browse files
authored
docs(clean): replace govet example with nakedret. (#1647)
1 parent 1f79767 commit 65369cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/docs/contributing/new-linters.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ After that:
1919
3. Add the new struct for the linter (which you've implemented in `pkg/golinters/{yourlintername}.go`) to the
2020
list of all supported linters in [`pkg/lint/lintersdb/manager.go`](https://github.com/golangci/golangci-lint/blob/master/pkg/lint/lintersdb/manager.go)
2121
to the function `GetAllSupportedLinterConfigs`. Enable it by default only if you are sure.
22-
4. Find out what options do you need to configure for the linter. For example, `govet` has
23-
only 1 option: [`check-shadowing`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml).
22+
4. Find out what options do you need to configure for the linter. For example, `nakedret` has
23+
only 1 option: [`max-func-lines`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml).
2424
Choose default values to not being annoying for users of golangci-lint. Add configuration options to:
2525

2626
- [.golangci.example.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml) - the example of a configuration file. You can also add

0 commit comments

Comments
 (0)