This is an automated email from the ASF dual-hosted git repository.
laskoviymishka 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 4ea6ff7f5 ci(lint): enable the unused linter (#2701)
4ea6ff7f5 is described below
commit 4ea6ff7f51acd0d18cb6f92887f1e7cff5ab4498
Author: Badal Prasad Singh <[email protected]>
AuthorDate: Tue Nov 24 20:22:29 2026 +0530
ci(lint): enable the unused linter (#2701)
minor
Signed-off-by: badalprasadsingh <[email protected]>
---
.golangci.yml | 1 +
cmd/iceberg/properties_test.go | 5 ++---
internal/utils_bench_test.go | 3 ++-
table/scan_dictionary_columns_test.go | 5 +----
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/.golangci.yml b/.golangci.yml
index f7e1beab8..f64722289 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -29,6 +29,7 @@ linters:
- nlreturn
- perfsprint
- staticcheck
+ - unused
settings:
errcheck:
exclude-functions:
diff --git a/cmd/iceberg/properties_test.go b/cmd/iceberg/properties_test.go
index 4a6ecf892..0fec90b2b 100644
--- a/cmd/iceberg/properties_test.go
+++ b/cmd/iceberg/properties_test.go
@@ -30,9 +30,8 @@ import (
)
type mockCatalogForProperties struct {
- tbl *table.Table
- nsProps iceberg.Properties
- propsGetCalled bool
+ tbl *table.Table
+ nsProps iceberg.Properties
}
func (m *mockCatalogForProperties) LoadNamespaceProperties(ctx
context.Context, namespace table.Identifier) (iceberg.Properties, error) {
diff --git a/internal/utils_bench_test.go b/internal/utils_bench_test.go
index 43a471a91..fac52a5ce 100644
--- a/internal/utils_bench_test.go
+++ b/internal/utils_bench_test.go
@@ -24,8 +24,9 @@ import (
"github.com/apache/iceberg-go/internal"
)
+// packEndBenchmarkItem is a 64-byte item; the blank field only sets its size.
type packEndBenchmarkItem struct {
- values [8]int64
+ _ [8]int64
}
var (
diff --git a/table/scan_dictionary_columns_test.go
b/table/scan_dictionary_columns_test.go
index f38dad145..d29064084 100644
--- a/table/scan_dictionary_columns_test.go
+++ b/table/scan_dictionary_columns_test.go
@@ -40,10 +40,7 @@ import (
"github.com/stretchr/testify/require"
)
-var (
- dictUTF8 = &arrow.DictionaryType{IndexType:
arrow.PrimitiveTypes.Int32, ValueType: arrow.BinaryTypes.String}
- dictBinary = &arrow.DictionaryType{IndexType:
arrow.PrimitiveTypes.Int32, ValueType: arrow.BinaryTypes.Binary}
-)
+var dictUTF8 = &arrow.DictionaryType{IndexType: arrow.PrimitiveTypes.Int32,
ValueType: arrow.BinaryTypes.String}
func newDictionaryColumnsTable(t *testing.T, schema *iceberg.Schema, props
iceberg.Properties) *table.Table {
t.Helper()