Skip to content

Commit fd67265

Browse files
authored
docs: replace 'disable-all' with 'default: none' (#5622)
1 parent 93065a6 commit fd67265

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/src/docs/contributing/new-linters.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ After that:
3333
5. Take a look at the example of [pull requests with new linter support](https://github.com/golangci/golangci-lint/pulls?q=is%3Apr+is%3Amerged+label%3A%22linter%3A+new%22).
3434
6. Run the tests:
3535
```bash
36-
go run ./cmd/golangci-lint/ run --no-config --disable-all --enable={yourlintername} ./pkg/golinters/{yourlintername}/testdata/{yourlintername}.go
36+
go run ./cmd/golangci-lint/ run --no-config --default=none --enable={yourlintername} ./pkg/golinters/{yourlintername}/testdata/{yourlintername}.go
3737
```
3838

3939
## How to add a private linter to `golangci-lint`

docs/src/docs/product/roadmap.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The deprecation of a linter will follow 3 phases:
5050
but it's recommended to remove it from your configuration.
5151
2. **Display of an error message**: At this point, you should remove the linter.
5252
The original implementation is replaced by a placeholder that does nothing.
53-
The linter is NOT enabled when using `enable-all` and should be removed from the `disable` option.
53+
The linter is NOT enabled when using `default: all` and should be removed from the `disable` option.
5454
3. **Removal of the linter** from golangci-lint.
5555

5656
Each phase corresponds to a minor version:

docs/src/docs/welcome/quick-start.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ golangci-lint help linters
3737
Pass `-E/--enable` to enable linter and `-D/--disable` to disable:
3838

3939
```bash
40-
golangci-lint run --disable-all -E errcheck
40+
golangci-lint run --default=none -E errcheck
4141
```
4242

4343
More information about available linters can be found in the [linters page](/usage/linters/).

0 commit comments

Comments
 (0)