Skip to content

Commit

Permalink
golangci-lint: disable type assertion checks in errcheck linter
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Nov 12, 2024
1 parent 8401cb3 commit bffa751
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/golangcilint/golangci_lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ linters-settings:
errcheck:
# Report about assignment of errors to blank identifier.
check-blank: true
# Report about not checking of errors in type assertions.
check-type-assertions: true
# Do not report about not checking of errors in type assertions.
# This is not as dangerous as skipping error values because an unchecked type assertion just immediately panics.
# We disable this because it makes a ton of useless noise esp. in test code.
check-type-assertions: false
{{- if .ErrcheckExcludes }}
exclude-functions:
{{- range .ErrcheckExcludes }}
Expand Down

0 comments on commit bffa751

Please sign in to comment.