docs: improve grammar in the custom linter article ()

This commit is contained in:
Oleksandr Redko 2024-03-12 15:35:46 +02:00 committed by GitHub
parent 9b5234997f
commit 59202b196d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 18 deletions
docs/src/docs

View file

@ -48,5 +48,5 @@ Typically, these linters can't be open-sourced or too specific.
Such linters can be added through 2 plugin systems:
- [Go Plugin System](/plugins/module-plugins)
- [Module Plugin System](/plugins/go-plugins)
1. [Go Plugin System](/plugins/module-plugins)
2. [Module Plugin System](/plugins/go-plugins)

View file

@ -6,10 +6,10 @@ An example linter can be found at [here](https://github.com/golangci/example-plu
## The Automatic Way
- define your building configuration into `.custom-gcl.yml`
- run the command `golangci-lint custom` ( or `golangci-lint custom -v` to have logs)
- define the plugin inside the `linters-settings.custom` section with the type `module`.
- run your custom version of golangci-lint
- Define your building configuration into `.custom-gcl.yml`.
- Run the command `golangci-lint custom` (or `golangci-lint custom -v` to have logs).
- Define the plugin inside the `linters-settings.custom` section with the type `module`.
- Run your custom version of golangci-lint.
Requirements:
- Go
@ -47,11 +47,11 @@ linters:
## The Manual Way
- add a blank-import of your module inside `cmd/golangci-lint/plugins.go`
- run `go mod tidy`. (the module containing the plugin will be imported)
- run `make build`
- define the plugin inside the configuration `linters-settings.custom` section with the type `module`.
- run your custom version of golangci-lint
- Add a blank-import of your module inside `cmd/golangci-lint/plugins.go`.
- Run `go mod tidy` (the module containing the plugin will be imported).
- Run `make build`.
- Define the plugin inside the configuration `linters-settings.custom` section with the type `module`.
- Run your custom version of golangci-lint.
### Configuration Example