Skip to content

Commit

Permalink
Enable type assertion checks (#41021)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator authored Sep 27, 2024
1 parent fc17d84 commit 5ec48fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ linters-settings:
desc: Apache 2.0 licensed code cannot depend on Elastic licensed code (x-pack/).
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
check-type-assertions: false
# default is false: such cases aren't reported by default.
check-type-assertions: true
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.
check-blank: false
# List of functions to exclude from checking, where each entry is a single function to exclude.
Expand Down

0 comments on commit 5ec48fa

Please sign in to comment.