Preparing report...

Report for github.com/kleveross/klever-model-registry

A+    Excellent!    Found 36 issues across 98 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo97%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint70%

Golint is a linter for Go source code.

    • klever-model-registry/pkg/util/utils.go
    • Line 18: warning: exported function RandomNameWithPrefix should have comment or be unexported (golint)
    • Line 22: warning: exported function RandomNameWithTS should have comment or be unexported (golint)
    • Line 30: warning: exported function GetFormValueFromRequest should have comment or be unexported (golint)
    • Line 34: warning: exported function GetRequestFromContext should have comment or be unexported (golint)
    • Line 38: warning: exported function GetResponseFromContext should have comment or be unexported (golint)
    • klever-model-registry/pkg/registry/errors/errors.go
    • Line 32: warning: exported function RenderBadRequestError should have comment or be unexported (golint)
    • Line 36: warning: exported function RenderNotFoundError should have comment or be unexported (golint)
    • Line 40: warning: exported function RenderUnAuthorizedError should have comment or be unexported (golint)
    • Line 44: warning: exported function RenderSendConflictError should have comment or be unexported (golint)
    • Line 48: warning: exported function RenderInternalServerError should have comment or be unexported (golint)
    • Line 52: warning: exported function RenderForbiddenError should have comment or be unexported (golint)
    • Line 56: warning: exported function RenderPreconditionFailedError should have comment or be unexported (golint)
    • Line 60: warning: exported function RenderStatusServiceUnavailableError should have comment or be unexported (golint)
    • Line 64: warning: exported function RenderNotAcceptableError should have comment or be unexported (golint)
    • Line 68: warning: exported function RenderRequestTimeoutError should have comment or be unexported (golint)
    • klever-model-registry/pkg/apis/modeljob/v1alpha1/modeljob_types.go
    • Line 92: warning: exported type ExtractionSource should have comment or be unexported (golint)
    • Line 96: warning: exported type ConversionSource should have comment or be unexported (golint)
    • Line 100: warning: exported type MMdnnSpec should have comment or be unexported (golint)
    • Line 104: warning: exported type ConversionBaseSpec should have comment or be unexported (golint)
    • Line 113: warning: exported const FrameworkTensorflow should have comment (or a comment on this block) or be unexported (golint)
    • Line 129: warning: exported const FormatSavedModel should have comment (or a comment on this block) or be unexported (golint)
    • Line 145: warning: exported type ModelJobPhase should have comment or be unexported (golint)
    • Line 148: warning: exported const ModelJobEmpty should have comment (or a comment on this block) or be unexported (golint)
    • klever-model-registry/pkg/registry/serving/serving.go
    • Line 16: warning: exported type ServingController should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method ServingController.Create should have comment or be unexported (golint)
    • Line 41: warning: exported method ServingController.Get should have comment or be unexported (golint)
    • Line 71: warning: exported method ServingController.List should have comment or be unexported (golint)
    • Line 83: warning: exported method ServingController.Update should have comment or be unexported (golint)
    • Line 98: warning: exported method ServingController.Delete should have comment or be unexported (golint)
    • klever-model-registry/pkg/registry/client/client.go
    • Line 52: warning: exported function GetKubeMainClient should have comment or be unexported (golint)
    • Line 56: warning: exported function GetKubeKleverOssClient should have comment or be unexported (golint)
    • Line 60: warning: exported function GetKubeKleverOssModelJobInformer should have comment or be unexported (golint)
    • Line 64: warning: exported function GetKubeSeldonClient should have comment or be unexported (golint)
    • Line 68: warning: exported function GetORMBClient should have comment or be unexported (golint)
    • klever-model-registry/pkg/registry/modeljob/modeljob.go
    • Line 1: warning: package comment should be of the form "Package modeljob ..." (golint)
    • Line 32: warning: exported type ModelJobController should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: exported method ModelJobController.Create should have comment or be unexported (golint)
    • Line 63: warning: exported method ModelJobController.Get should have comment or be unexported (golint)
    • Line 72: warning: exported method ModelJobController.Delete should have comment or be unexported (golint)
    • Line 103: warning: exported method ModelJobController.List should have comment or be unexported (golint)
    • klever-model-registry/pkg/registry/event/event.go
    • Line 1: warning: package comment should be of the form "Package event ..." (golint)
    • Line 37: warning: exported type EventController should have comment or be unexported (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • Line 77: warning: exported method EventController.GetModelJobEvents should have comment or be unexported (golint)
    • Line 100: warning: exported method EventController.GetServingEvents should have comment or be unexported (golint)
    • klever-model-registry/pkg/registry/resource/logs/logs.go
    • Line 33: warning: exported const NewestTimestamp should have comment (or a comment on this block) or be unexported (golint)
    • Line 154: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 189: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 223: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words