Skip to content

Golang Lint Check Warnings #575

@willcalcote

Description

@willcalcote

Description
Running make check produces the following warnings and suggestions:

validator/validate.go:17:2: var `schemaPath` is unused (unused)
	schemaPath      = "components.schemas"
	^
config/provider/inmem.go:57:9: SA1019: utils.Unmarshal is deprecated: Use Unmarshal from encoding package. TODO: Replace the usages from all projects. (staticcheck)
	return utils.Unmarshal(l.store[key], result)
	       ^
utils/kubernetes/crd.go:38:8: SA1019: utils.Unmarshal is deprecated: Use Unmarshal from encoding package. TODO: Replace the usages from all projects. (staticcheck)
	err = utils.Unmarshal(string(crdresult), &xcrd)

Expected Behavior
All lint checks pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions