File tree 1 file changed +5
-0
lines changed
docs/src/docs/contributing
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ Some people and organizations may choose to have custom-made linters run as a pa
41
41
Typically, these linters can't be open-sourced or too specific.
42
42
Such linters can be added through Go's plugin library.
43
43
44
+ For a private linter (which acts as a plugin) to work properly,
45
+ the plugin as well as the golangci-lint binary needs to be built for the same environment. ` CGO_ENABLED ` is another requirement.
46
+ This means that ` golangci-lint ` needs to be built for whatever machine you intend to run it on
47
+ (cloning the golangci-lint repository and running a ` CGO_ENABLED=1 make build ` should do the trick for your machine).
48
+
44
49
### Configure a Plugin
45
50
46
51
If you already have a linter plugin available, you can follow these steps to define it's usage in a projects
You can’t perform that action at this time.
0 commit comments