Skip to content

Commit

Permalink
Merge #11824
Browse files Browse the repository at this point in the history
11824: golangci-lint: Drop deprecated linters r=abhinav a=abhinav

golangci-lint constantly prints this message:

```
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
```

Drop these linters and enable the 'unused' linter.

Depends on #11823


Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
  • Loading branch information
bors[bot] and abhinav committed Jan 11, 2023
2 parents 9fb4589 + 0a1d287 commit abc243f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ run:
linters:
enable-all: false
enable:
- deadcode
- errcheck
- goconst
- gofmt
Expand All @@ -23,9 +22,8 @@ linters:
- misspell
- nolintlint
- nakedret
- structcheck
- unconvert
- varcheck
- unused
- paralleltest
disable:
- staticcheck # Disabled due to OOM errors in golangci-lint@v1.18.0
Expand Down

0 comments on commit abc243f

Please sign in to comment.