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/
|
.cmd-old/
|
||||||
pkg/.testapp
|
pkg/.testapp
|
||||||
.claude
|
.claude
|
||||||
|
bin
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
go test -tags fts5 ./...
|
go test -tags fts5 ./... $@
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user