From 360e19e5960465abf53e9145ab3f0821f9f88ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Tue, 2 Apr 2024 13:50:46 +0000 Subject: [PATCH] golangci-lint 1.57 (#1564) --- .github/workflows/golang-lint.yml | 2 +- flow/.golangci.yml | 6 ++++-- flow/connectors/snowflake/avro_file_writer_test.go | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index 74bbb629df..f96dfe854e 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -29,6 +29,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.56 + version: v1.57 working-directory: ./flow args: --timeout=10m diff --git a/flow/.golangci.yml b/flow/.golangci.yml index 89c332defb..f2f6565b41 100644 --- a/flow/.golangci.yml +++ b/flow/.golangci.yml @@ -1,9 +1,10 @@ -run: - skip-dirs: +issues: + exclude-dirs: - generated linters: enable: - containedctx + - copyloopvar - dogsled - durationcheck - errcheck @@ -14,6 +15,7 @@ linters: - gosec - gosimple - ineffassign + - intrange - lll - misspell - musttag diff --git a/flow/connectors/snowflake/avro_file_writer_test.go b/flow/connectors/snowflake/avro_file_writer_test.go index 10dbb1fee9..b41428de70 100644 --- a/flow/connectors/snowflake/avro_file_writer_test.go +++ b/flow/connectors/snowflake/avro_file_writer_test.go @@ -120,7 +120,7 @@ func generateRecords( } } - for row := uint32(0); row < numRows; row++ { + for row := range numRows { entries := make([]qvalue.QValue, len(allQValueKinds)) for i, kind := range allQValueKinds {