This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git
The following commit(s) were added to refs/heads/main by this push:
new b05cb49 ci: fixing the golangci action (#373)
b05cb49 is described below
commit b05cb4915b61d2cdbfd41f151a98e3fa5ee0c225
Author: Matt Topol <[email protected]>
AuthorDate: Wed Apr 2 11:38:37 2025 -0400
ci: fixing the golangci action (#373)
Upgrade golangci-lint so Apache INFRA stops blocking it
Migrated config to v2 of golangci-lint.
---
.github/workflows/go-ci.yml | 4 ++--
.golangci.yml => .golangci.bck.yml | 0
.golangci.yml | 28 ++++++++++++++++++++++++----
3 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml
index 4c38957..1007521 100644
--- a/.github/workflows/go-ci.yml
+++ b/.github/workflows/go-ci.yml
@@ -53,9 +53,9 @@ jobs:
if: matrix.go == '1.23.6'
run: go install honnef.co/go/tools/cmd/[email protected]
- name: Run golangci-lint
- uses: golangci/golangci-lint-action@v6
+ uses:
golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7
with:
- version: v1.64.5
+ version: v2.0.2
args: --timeout=10m
- name: Lint
run: staticcheck ./...
diff --git a/.golangci.yml b/.golangci.bck.yml
similarity index 100%
copy from .golangci.yml
copy to .golangci.bck.yml
diff --git a/.golangci.yml b/.golangci.yml
index bdab05c..231e63e 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -15,12 +15,32 @@
# specific language governing permissions and limitations
# under the License.
---
+version: "2"
linters:
- disable-all: true
+ default: none
enable:
- - gofmt
- - goimports
+ - misspell
- nlreturn
- perfsprint
+ exclusions:
+ generated: lax
+ presets:
+ - comments
+ - common-false-positives
+ - legacy
+ - std-error-handling
+ paths:
+ - third_party$
+ - builtin$
+ - examples$
+formatters:
+ enable:
+ - gofmt
- gofumpt
- - misspell
\ No newline at end of file
+ - goimports
+ exclusions:
+ generated: lax
+ paths:
+ - third_party$
+ - builtin$
+ - examples$