You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/docs/plugins/go-plugins.mdx
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,18 +50,19 @@ If you're looking for instructions on how to configure your own custom linter, t
50
50
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.
51
51
2. Adjust the YAML to appropriate `linters-settings.custom` entries as so:
52
52
```yaml title=.golangci.yml
53
-
linters-settings:
54
-
custom:
55
-
example:
56
-
path: /example.so
57
-
description: The description of the linter
58
-
original-url: github.com/golangci/example-linter
59
-
settings: # Settings are optional.
60
-
one: Foo
61
-
two:
62
-
- name: Bar
63
-
three:
64
-
name: Bar
53
+
linters:
54
+
settings:
55
+
custom:
56
+
example:
57
+
path: /example.so
58
+
description: The description of the linter
59
+
original-url: github.com/golangci/example-linter
60
+
settings: # Settings are optional.
61
+
one: Foo
62
+
two:
63
+
- name: Bar
64
+
three:
65
+
name: Bar
65
66
```
66
67
67
68
That is all the configuration that is required to run a custom linter in your project.
0 commit comments