Skip to content

[Doc] Comparing with UnmarshalJSON #6

[Doc] Comparing with UnmarshalJSON

[Doc] Comparing with UnmarshalJSON #6

Triggered via pull request December 18, 2023 14:54
@YoricYoric
synchronize #1
yoric/doc
Status Failure
Total duration 29s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: deserialize/deserialize.go#L163
string `json` has 3 occurrences, make it a constant (goconst)
lint: validation/validation_test.go#L73
validation_test.ExampleCanValidate is missing field kindIndex (exhaustruct)
lint: validation/validation_test.go#L85
validation_test.ExampleCanValidate is missing field kindIndex (exhaustruct)
lint: deserialize/deserialize_test.go#L22
`PrimitiveTypesStruct` should be annotated with the `json` tag as it is passed to `json.Marshal` at deserialize/deserialize_test.go:115:13 (musttag)
lint: deserialize/deserialize.go#L146
error returned from external package is unwrapped: sig: func encoding/json.Unmarshal(data []byte, v any) error (wrapcheck)
lint: deserialize/deserialize.go#L184
error returned from external package is unwrapped: sig: func encoding/json.Unmarshal(data []byte, v any) error (wrapcheck)
lint: deserialize/deserialize_test.go#L87
error returned from interface method should be wrapped: sig: func (github.com/pasqal-io/godasse/deserialize.MapDeserializer[Output]).DeserializeMap(map[string]any) (*Output, error) (wrapcheck)
lint: validation/validation_test.go#L75
directive `//nolint:exhaustruct` is unused for linter "exhaustruct" (nolintlint)
lint: validation/validation_test.go#L87
directive `//nolint:exhaustruct` is unused for linter "exhaustruct" (nolintlint)
lint
issues found