Skip to content

Commit 7e49bcd

Browse files
committed
chore: bump golangci-lint version
1 parent 15b9731 commit 7e49bcd

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
1717
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
1818
with:
19-
version: v1.61.0
19+
version: v1.62.0
2020
test:
2121
strategy:
2222
matrix:

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
2-
go: '1.22'
2+
go: '1.23'
33

44
linters:
55
enable:
@@ -44,6 +44,7 @@ linters:
4444
- gosmopolitan
4545
- govet
4646
- grouper
47+
- iface
4748
- importas
4849
- inamedparam
4950
- ineffassign
@@ -66,6 +67,7 @@ linters:
6667
- promlinter
6768
- protogetter
6869
- reassign
70+
- recvcheck
6971
- revive
7072
- rowserrcheck
7173
- sloglint
@@ -97,7 +99,6 @@ linters:
9799
- gocognit
98100
- gocyclo
99101
- godox
100-
- gomnd
101102
- maintidx
102103
- nakedret
103104
- nestif

scanner.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,11 @@ func (s *Scanner) Close() error {
529529
return err
530530
}
531531

532-
func (s Scanner) ScannedRecords() int64 {
532+
func (s *Scanner) ScannedRecords() int64 {
533533
return s.scanRecords
534534
}
535535

536-
func (s Scanner) EstimatedRecords() int64 {
536+
func (s *Scanner) EstimatedRecords() int64 {
537537
return s.estimatedRecords
538538
}
539539

@@ -565,21 +565,21 @@ func (s *Scanner) SHxHeader() *SHxHeader {
565565
return nil
566566
}
567567

568-
func (s Scanner) Charset() string {
568+
func (s *Scanner) Charset() string {
569569
if s.fileCPG != nil {
570570
return s.fileCPG.Charset
571571
}
572572
return ""
573573
}
574574

575-
func (s Scanner) Projection() string {
575+
func (s *Scanner) Projection() string {
576576
if s.filePRJ != nil {
577577
return s.filePRJ.Projection
578578
}
579579
return ""
580580
}
581581

582-
func (s Scanner) Error() error {
582+
func (s *Scanner) Error() error {
583583
return s.err
584584
}
585585

shapefile_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ func TestReadFSAndZipFile(t *testing.T) {
388388
func TestShapefileRecords(t *testing.T) {
389389
s, err := ReadZipFile("testdata/110m-admin-0-countries.zip", nil)
390390
assert.NoError(t, err)
391-
var fieldss []map[string]any
392-
var geoms []geom.T
391+
fieldss := make([]map[string]any, 0, s.NumRecords())
392+
geoms := make([]geom.T, 0, s.NumRecords())
393393
for fields, g := range s.Records() {
394394
fieldss = append(fieldss, fields)
395395
geoms = append(geoms, g)

0 commit comments

Comments
 (0)