From 92abf95ef5d61c72e9d2049e8233ceafbd04d293 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Thu, 26 Jan 2023 17:47:09 +0100 Subject: [PATCH 1/2] docs: Clarify that custom linters are not enabled by default (#3505) --- docs/src/docs/contributing/new-linters.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/src/docs/contributing/new-linters.mdx b/docs/src/docs/contributing/new-linters.mdx index 55f5c4a065ee..720ce393d22a 100644 --- a/docs/src/docs/contributing/new-linters.mdx +++ b/docs/src/docs/contributing/new-linters.mdx @@ -64,10 +64,9 @@ linters-settings: original-url: github.com/golangci/example-linter ``` -That is all the configuration that is required to run a custom linter in your project. Custom linters are enabled by default, -but abide by the same rules as other linters. If the disable all option is specified either on command line or in -`.golangci.yml` files `linters:disable-all: true`, custom linters will be disabled; they can be re-enabled by adding them -to the `linters:enable` list, or providing the enabled option on the command line, `golangci-lint run -Eexample`. +That is all the configuration that is required to run a custom linter in your project. Custom linters are disabled by default, +and are not enabled when `linters:enable-all` is specified. They can be enabled by adding them the `linters:enable` list, or +providing the enabled option on the command line, `golangci-lint run -Eexample`. ### Create a Plugin From a62ece522172dbc68ec9f3061ab61b98497d61dd Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 27 Feb 2023 22:31:52 +0100 Subject: [PATCH 2/2] review --- docs/src/docs/contributing/new-linters.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/docs/contributing/new-linters.mdx b/docs/src/docs/contributing/new-linters.mdx index 720ce393d22a..e3be08c52a0f 100644 --- a/docs/src/docs/contributing/new-linters.mdx +++ b/docs/src/docs/contributing/new-linters.mdx @@ -64,9 +64,9 @@ linters-settings: original-url: github.com/golangci/example-linter ``` -That is all the configuration that is required to run a custom linter in your project. Custom linters are disabled by default, -and are not enabled when `linters:enable-all` is specified. They can be enabled by adding them the `linters:enable` list, or -providing the enabled option on the command line, `golangci-lint run -Eexample`. +That is all the configuration that is required to run a custom linter in your project. +Custom linters are disabled by default, and are not enabled when `linters.enable-all` is specified. +They can be enabled by adding them the `linters.enable` list, or providing the enabled option on the command line (`golangci-lint run -Eexample`). ### Create a Plugin