housekeeping: clean up lint config

This commit is contained in:
2026-09-19 21:36:31 -07:00
parent de11a0214b
commit f8d79761f4
4 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ sample_data/data
.cmd-old/ .cmd-old/
pkg/.testapp pkg/.testapp
.claude .claude
bin

View File

@@ -54,15 +54,17 @@ linters:
require-specific: true require-specific: true
allow-unused: false allow-unused: false
staticcheck: staticcheck:
go: "1.24"
checks: checks:
- all - all
- -ST1000 # Re-enable this once we have docstrings - -ST1000 # Re-enable this once we have docstrings
- -ST1003 # I like snake_case - -ST1003 # I like snake_case
- -ST1013 # HTTP status codes are shorter and more readable than names - -ST1013 # HTTP status codes are shorter and more readable than names
wrapcheck:
report-internal-errors: false
extra-ignore-sigs:
- json.Marshal(
exclusions: exclusions:
generated: lax # Don't lint generated files generated: lax # Don't lint generated files
paths:
formatters: formatters:
enable: enable:
@@ -78,7 +80,6 @@ formatters:
simplify: true simplify: true
exclusions: exclusions:
generated: lax generated: lax
paths:
run: run:
build-tags: build-tags:

View File

@@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
go test -tags fts5 ./... go test -tags fts5 ./... $@

View File

@@ -16,7 +16,7 @@ func (vs VSC) MarshalJSON() ([]byte, error) {
if vs == nil { if vs == nil {
vs = VSC{} vs = VSC{}
} }
return json.Marshal([]string(vs)) //nolint: wrapcheck // Passthrough return json.Marshal([]string(vs))
} }
func (vs VSC) Value() (driver.Value, error) { func (vs VSC) Value() (driver.Value, error) {