Skip to content

Commit

Permalink
Disable "errorlint" to prevent false-positive errors
Browse files Browse the repository at this point in the history
In GH-21 [1] "golangci-lint" was updated to the currently latest version
1.32.0 [2] which introduced the errorlint [3] that has been enabled for
this template repository. As it turns out it causes a lot of
false-positives errors for code lines that explicitly do not wrap the
error to prevent it become part of the public API.
Therefore the linter has been disabled again because the update also
introduced the new wrapcheck [4] linter which helps to prevent that
errors from external packages are exposed to the public API.

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

GH-39
  • Loading branch information
svengreb committed Nov 16, 2020
1 parent 17e28f0 commit a7e9cd8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ linters:
- dogsled
- dupl
- errcheck
- errorlint
- exhaustive
- gochecknoinits
- goconst
Expand Down

0 comments on commit a7e9cd8

Please sign in to comment.