housekeeping: clean up lint config
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ sample_data/data
|
||||
.cmd-old/
|
||||
pkg/.testapp
|
||||
.claude
|
||||
bin
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
go test -tags fts5 ./...
|
||||
go test -tags fts5 ./... $@
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user