File tree 1 file changed +5
-5
lines changed
docs/src/docs/contributing
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ See [there](/contributing/new-linters#how-to-add-a-public-linter-to-golangci-lin
10
10
11
11
See [ there] ( /contributing/new-linters#how-to-add-a-private-linter-to-golangci-lint ) .
12
12
13
- ## How to update existing linter
13
+ ## How to update an existing linter
14
14
15
15
Just update its version in ` go.mod ` .
16
16
17
- ## How to add configuration option to existing linter
17
+ ## How to add a configuration option to an existing linter
18
18
19
- Add a new field to a [ config struct] ( https://github.com/golangci/golangci-lint/blob/master/pkg/config/config .go ) .
20
- Document it in [ .golangci.reference.yml] ( https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml ) .
21
- Pass it to a linter.
19
+ Add a new field to the [ linter settings struct] ( https://github.com/golangci/golangci-lint/blob/master/pkg/config/linters_settings .go ) .
20
+ Document it in [ .golangci.next. reference.yml] ( https://github.com/golangci/golangci-lint/blob/master/.golangci.next .reference.yml ) .
21
+ Pass it to the linter.
22
22
23
23
## How to see ` INFO ` or ` DEBUG ` logs
24
24
You can’t perform that action at this time.
0 commit comments