Skip to content

Commit

Permalink
docs: update "Contributing FAQ" (#5260)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Dec 27, 2024
1 parent 8e47515 commit 040a93e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/docs/contributing/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ See [there](/contributing/new-linters#how-to-add-a-public-linter-to-golangci-lin

See [there](/contributing/new-linters#how-to-add-a-private-linter-to-golangci-lint).

## How to update existing linter
## How to update an existing linter

Just update its version in `go.mod`.

## How to add configuration option to existing linter
## How to add a configuration option to an existing linter

Add a new field to a [config struct](https://github.com/golangci/golangci-lint/blob/master/pkg/config/config.go).
Document it in [.golangci.reference.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml).
Pass it to a linter.
Add a new field to the [linter settings struct](https://github.com/golangci/golangci-lint/blob/master/pkg/config/linters_settings.go).
Document it in [.golangci.next.reference.yml](https://github.com/golangci/golangci-lint/blob/master/.golangci.next.reference.yml).
Pass it to the linter.

## How to see `INFO` or `DEBUG` logs

Expand Down

0 comments on commit 040a93e

Please sign in to comment.