diff --git a/.golangci.yml b/.golangci.yml index 366252d..4020087 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,3 +3,8 @@ version: "2" formatters: enable: - gofmt + +linters: + settings: + goconst: + ignore-tests: true diff --git a/cmd/brief/main.go b/cmd/brief/main.go index 0088f82..df06d3f 100644 --- a/cmd/brief/main.go +++ b/cmd/brief/main.go @@ -324,7 +324,7 @@ func cmdSchema() { // Named struct types are emitted as $ref pointers into the $defs map. func schemaForType(t reflect.Type, defs map[string]any) map[string]any { // Unwrap pointers. - for t.Kind() == reflect.Ptr { + for t.Kind() == reflect.Pointer { t = t.Elem() }