Skip to content

Commit

Permalink
Update to golangci-lint v1.32.0
Browse files Browse the repository at this point in the history
The currently latest `golangci-lint` version 1.32.0 [1] introduced new
linters that have been added to this template:

1. wrapcheck [2] — Checks that errors returned from external packages
   are wrapped.
   This linter is disabled by default, but has been enabled for this
   template to help tp reduce error context loss.
2. [errorlint][3] — Helps to make more efficient use of the error
   wrapping scheme introduced in Go 1.13.
   This linter is disabled by default, but has been enabled for this
   template to help to use Go's new error handling concept.
3. [tparallel][4] — Detects inappropriate usage of `t.Parallel()` method
   in Go tests.
   This linter is disabled by default, but has been enabled for this
   template to help to prevent parallelism errors in tests.

[1]: https://github.com/golangci/golangci-lint/releases/tag/v1.32.0
[2]: https://github.com/tomarrell/wrapcheck
[3]: https://github.com/polyfloyd/go-errorlint
[4]: https://github.com/moricho/tparallel

GH-20
  • Loading branch information
svengreb committed Oct 30, 2020
1 parent 770a8cc commit 4ba3beb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# See https://github.com/golangci/golangci-lint-action for more details.
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
version: v1.32
test:
strategy:
matrix:
Expand Down
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ linters:
- dogsled
- dupl
- errcheck
- errorlint
- exhaustive
- gochecknoinits
- goconst
Expand Down Expand Up @@ -59,12 +60,14 @@ linters:
- staticcheck
- structcheck
- stylecheck
- tparallel
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wrapcheck
# Run all linters, not only fast ones.
fast: false

Expand Down Expand Up @@ -145,4 +148,4 @@ run:
deadline: 15m

service:
golangci-lint-version: 1.31.x
golangci-lint-version: 1.32.x

0 comments on commit 4ba3beb

Please sign in to comment.