Skip to content

Commit

Permalink
golangci: enable bodyclose
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Dec 4, 2024
1 parent 7b0312a commit a19445a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ run:
linters:
enable-all: true
disable:
- bodyclose
- contextcheck
- cyclop
- depguard
Expand Down Expand Up @@ -114,6 +113,11 @@ issues:
- gosec
source: "uint32\\(len\\(|\\.Len\\(\\)"

- path: internal/martian
linters:
- bodyclose
source: "newConnectResponse\\(|[eE]rrorResponse\\(|http\\.NewResponseController|http\\.NoBody"

- path: internal/martian/context.go
linters:
- forcetypeassert
Expand Down

0 comments on commit a19445a

Please sign in to comment.