Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.5k
docs: clean old configuration examples#5626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from3 commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
ldez marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page.
ldez marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -48,20 +48,23 @@ An example linter can be found at [here](https://github.com/golangci/example-plu | ||
| If you're looking for instructions on how to configure your own custom linter, they can be found further down. | ||
| 1. If the project you want to lint does not have one already, copy the [.golangci.yml](https://github.com/golangci/golangci-lint/blob/HEAD/.golangci.yml) to the root directory. | ||
| 2. Adjust the YAML to appropriate `linters.settings.custom` entries as so: | ||
| ```yaml title=.golangci.yml | ||
ldez marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| version: "2" | ||
| linters: | ||
| settings: | ||
| custom: | ||
| example: | ||
| path: /example.so | ||
| description: The description of the linter | ||
| original-url: github.com/golangci/example-linter | ||
| settings: # Settings are optional. | ||
| one: Foo | ||
| two: | ||
| - name: Bar | ||
| three: | ||
| name: Bar | ||
| ``` | ||
| That is all the configuration that is required to run a custom linter in your project. | ||
ldez marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
ldez marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
Uh oh!
There was an error while loading.Please reload this page.