mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-11 13:58:44 -04:00
docs: improve grammar in the custom linter article (#4489)
This commit is contained in:
parent
9b5234997f
commit
59202b196d
4 changed files with 18 additions and 18 deletions
docs/src/docs
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue