Skip to content

Commit

Permalink
chore(build): update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R authored and ThinkChaos committed Aug 27, 2024
1 parent 0cf7cb5 commit dbba2fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,11 @@ linters:
- usestdlibvars
- wastedassign
- whitespace
- wsl
- ginkgolinter
- noctx
- containedctx
- contextcheck
disable:
- scopelint
- structcheck
- deadcode
- varcheck
- forbidigo
- gosmopolitan
disable-all: false
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GO_BUILD_LD_FLAGS:=\
GO_BUILD_OUTPUT:=$(BIN_OUT_DIR)/$(BINARY_NAME)$(BINARY_SUFFIX)

# define version of golangci-lint here. If defined in tools.go, go mod perfoms automatically downgrade to older version which doesn't work with golang >=1.18
GOLANG_LINT_VERSION=v1.58.2
GOLANG_LINT_VERSION=v1.60.1

GINKGO_PROCS?=-p

Expand Down
3 changes: 2 additions & 1 deletion lists/list_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ func createTestListFile(dir string, totalLines int) (string, int) {
for i := 0; i < totalLines; i++ {
fmt.Fprintln(w, uuid.NewString()+".com")
}
w.Flush()

Expect(w.Flush()).Should(Succeed())

return file.Name(), totalLines
}
4 changes: 2 additions & 2 deletions util/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func init() {
// DefaultHTTPTransport returns a new Transport with the same defaults as net/http.
func DefaultHTTPTransport() *http.Transport {
return &http.Transport{
Dial: baseTransport.Dial, //nolint:staticcheck
Dial: baseTransport.Dial,
DialContext: baseTransport.DialContext,
DialTLS: baseTransport.DialTLS, //nolint:staticcheck
DialTLS: baseTransport.DialTLS,
DialTLSContext: baseTransport.DialTLSContext,
DisableCompression: baseTransport.DisableCompression,
DisableKeepAlives: baseTransport.DisableKeepAlives,
Expand Down

0 comments on commit dbba2fa

Please sign in to comment.