Skip to content

Commit 9e1f3ee

Browse files
hallelx2claude
andcommitted
ci: fix pgx.Tx errcheck exclude (interface, not pointer) + gofmt
pgx.Tx is an interface, so the errcheck exclude-functions pattern must use `(pkg.Tx).Rollback`, not `(*pkg.Tx).Rollback`. Also gofmt three more files that slipped through. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3980e3f commit 9e1f3ee

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ linters:
2828
- (io.Closer).Close
2929
- (*os.File).Close
3030
- (net/http.ResponseWriter).Write
31-
- (*github.com/jackc/pgx/v5.Tx).Rollback
31+
- (github.com/jackc/pgx/v5.Tx).Rollback
3232
- (github.com/hallelx2/vectorless-engine/pkg/queue.Queue).Close
3333
exclusions:
3434
rules:

cmd/engine/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import (
1717
"syscall"
1818
"time"
1919

20-
"github.com/hallelx2/vectorless-engine/internal/api"
21-
"github.com/hallelx2/vectorless-engine/pkg/config"
22-
"github.com/hallelx2/vectorless-engine/pkg/db"
23-
"github.com/hallelx2/vectorless-engine/pkg/ingest"
2420
"github.com/hallelx2/llmgate"
2521
"github.com/hallelx2/llmgate/provider/anthropic"
2622
"github.com/hallelx2/llmgate/provider/gemini"
2723
"github.com/hallelx2/llmgate/provider/openai"
24+
"github.com/hallelx2/vectorless-engine/internal/api"
25+
"github.com/hallelx2/vectorless-engine/pkg/config"
26+
"github.com/hallelx2/vectorless-engine/pkg/db"
27+
"github.com/hallelx2/vectorless-engine/pkg/ingest"
2828
"github.com/hallelx2/vectorless-engine/pkg/queue"
2929
"github.com/hallelx2/vectorless-engine/pkg/retrieval"
3030
"github.com/hallelx2/vectorless-engine/pkg/storage"

pkg/config/config.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ type S3StorageBlock struct {
8585

8686
// QueueConfig configures the background job queue.
8787
type QueueConfig struct {
88-
Driver string `yaml:"driver"`
89-
QStash QStashBlock `yaml:"qstash"`
90-
River RiverBlock `yaml:"river"`
91-
Asynq AsynqBlock `yaml:"asynq"`
88+
Driver string `yaml:"driver"`
89+
QStash QStashBlock `yaml:"qstash"`
90+
River RiverBlock `yaml:"river"`
91+
Asynq AsynqBlock `yaml:"asynq"`
9292
}
9393

9494
// QStashBlock configures QStash.
@@ -141,8 +141,8 @@ type GeminiBlock struct {
141141

142142
// RetrievalConfig configures the retrieval strategy.
143143
type RetrievalConfig struct {
144-
Strategy string `yaml:"strategy"`
145-
ChunkedTree ChunkedTreeBlock `yaml:"chunked_tree"`
144+
Strategy string `yaml:"strategy"`
145+
ChunkedTree ChunkedTreeBlock `yaml:"chunked_tree"`
146146
}
147147

148148
// ChunkedTreeBlock configures the chunked-tree strategy.

pkg/parser/pdf.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ func extractPDFRows(reader *pdflib.Reader) ([]pdfRow, error) {
209209
// Group letters by (approximate) baseline Y. Values within 2pt are
210210
// considered the same row — PDFs frequently jitter Y by a fraction.
211211
type rowBucket struct {
212-
y float64
213-
maxFS float64
214-
chars []pdflib.Text
212+
y float64
213+
maxFS float64
214+
chars []pdflib.Text
215215
}
216216
var buckets []*rowBucket
217217
find := func(y float64) *rowBucket {
@@ -334,9 +334,9 @@ func parsePDFWithOutline(outline pdflib.Outline, rows []pdfRow) (*ParsedDoc, boo
334334
// forgiving of trailing page numbers, section numbering prefixes the
335335
// outline sometimes omits, etc.
336336
type matched struct {
337-
level int
338-
title string
339-
rowIdx int // index into rows where this heading starts
337+
level int
338+
title string
339+
rowIdx int // index into rows where this heading starts
340340
}
341341
var chosen []matched
342342
cursor := 0

0 commit comments

Comments
 (0)