diff --git a/.gitignore b/.gitignore index 0caa7c1..33e9c43 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ sample_data/data .cmd-old/ pkg/.testapp .claude +bin diff --git a/.golangci.yaml b/.golangci.yaml index b5bb790..179e628 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -54,15 +54,17 @@ linters: require-specific: true allow-unused: false staticcheck: - go: "1.24" checks: - all - -ST1000 # Re-enable this once we have docstrings - -ST1003 # I like snake_case - -ST1013 # HTTP status codes are shorter and more readable than names + wrapcheck: + report-internal-errors: false + extra-ignore-sigs: + - json.Marshal( exclusions: generated: lax # Don't lint generated files - paths: formatters: enable: @@ -78,7 +80,6 @@ formatters: simplify: true exclusions: generated: lax - paths: run: build-tags: diff --git a/ops/test.sh b/ops/test.sh index f841a41..7bc7f3b 100755 --- a/ops/test.sh +++ b/ops/test.sh @@ -1,3 +1,3 @@ #!/bin/sh -go test -tags fts5 ./... +go test -tags fts5 ./... $@ diff --git a/pkg/db/vsc.go b/pkg/db/vsc.go index 85c274c..81ab54d 100644 --- a/pkg/db/vsc.go +++ b/pkg/db/vsc.go @@ -16,7 +16,7 @@ func (vs VSC) MarshalJSON() ([]byte, error) { if vs == nil { vs = VSC{} } - return json.Marshal([]string(vs)) //nolint: wrapcheck // Passthrough + return json.Marshal([]string(vs)) } func (vs VSC) Value() (driver.Value, error) {