You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/docs/contributing/new-linters.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,16 @@ After that:
17
17
Run `T=yourlintername.go make test_linters` to ensure that test fails.
18
18
2. Add a new file `pkg/golinters/{yourlintername}.go`. Look at other linters in this directory. Implement linter integration and check that test passes.
19
19
3. Add the new struct for the linter (which you've implemented in `pkg/golinters/{yourlintername}.go`) to the
20
-
list of all supported linters in [`pkg/lint/lintersdb/lintersdb.go`](https://github.com/golangci/golangci-lint/blob/master/pkg/lint/lintersdb/lintersdb.go)
20
+
list of all supported linters in [`pkg/lint/lintersdb/manager.go`](https://github.com/golangci/golangci-lint/blob/master/pkg/lint/lintersdb/manager.go)
21
21
to the function `GetAllSupportedLinterConfigs`. Enable it by default only if you are sure.
22
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#L20).
23
+
only 1 option: [`check-shadowing`](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml).
24
24
Choose default values to not being annoying for users of golangci-lint. Add configuration options to:
25
25
26
26
-[.golangci.example.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml) - the example of a configuration file. You can also add
27
27
them to [.golangci.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.yml) if you think
0 commit comments