Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/docs/contributing/new-linters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ After that:
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).
6. Run the tests:
```bash
go run ./cmd/golangci-lint/ run --no-config --disable-all --enable={yourlintername} ./pkg/golinters/{yourlintername}/testdata/{yourlintername}.go
go run ./cmd/golangci-lint/ run --no-config --default=none --enable={yourlintername} ./pkg/golinters/{yourlintername}/testdata/{yourlintername}.go
```

## How to add a private linter to `golangci-lint`
Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/product/roadmap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The deprecation of a linter will follow 3 phases:
but it's recommended to remove it from your configuration.
2. **Display of an error message**: At this point, you should remove the linter.
The original implementation is replaced by a placeholder that does nothing.
The linter is NOT enabled when using `enable-all` and should be removed from the `disable` option.
The linter is NOT enabled when using `default: all` and should be removed from the `disable` option.
3. **Removal of the linter** from golangci-lint.

Each phase corresponds to a minor version:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/welcome/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $ golangci-lint help linters
Pass `-E/--enable` to enable linter and `-D/--disable` to disable:

```bash
golangci-lint run --disable-all -E errcheck
golangci-lint run --default=none -E errcheck
```

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