Preparing report...

Report for github.com/ray-project/kuberay

A    Great!    Found 9 issues across 15 files

Tweet

gofmt73%

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!


gocyclo93%

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.


golint66%

Golint is a linter for Go source code.

    • kuberay/ray-operator/api/v1alpha1/raycluster_types.go
    • Line 8: warning: comment on exported type RayClusterSpec should be of the form "RayClusterSpec ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported type ClusterState should be of the form "ClusterState ..." (with optional leading article) (golint)
    • Line 69: warning: exported const Ready should have comment (or a comment on this block) or be unexported (golint)
    • kuberay/ray-operator/controllers/utils/util.go
    • Line 76: warning: comment on exported function FormatInt32 should be of the form "FormatInt32 ..." (golint)
    • Line 101: warning: comment on exported function FindRayContainerIndex should be of the form "FindRayContainerIndex ..." (golint)
    • Line 121: warning: comment on exported function CalculateMinReplicas should be of the form "CalculateMinReplicas ..." (golint)
    • Line 131: warning: comment on exported function CalculateMaxReplicas should be of the form "CalculateMaxReplicas ..." (golint)
    • Line 141: warning: comment on exported function CalculateAvailableReplicas should be of the form "CalculateAvailableReplicas ..." (golint)
    • kuberay/ray-operator/controllers/common/constant.go
    • Line 4: warning: comment on exported const RayClusterLabelKey should be of the form "RayClusterLabelKey ..." (golint)
    • Line 6: warning: exported const RayNodeTypeLabelKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported const DashSymbol should be of the form "DashSymbol ..." (golint)
    • Line 17: warning: comment on exported const DefaultClientPort should be of the form "DefaultClientPort ..." (golint)
    • Line 26: warning: comment on exported const PodReadyFilepath should be of the form "PodReadyFilepath ..." (golint)
    • Line 29: warning: comment on exported const NAMESPACE should be of the form "NAMESPACE ..." (golint)
    • kuberay/ray-operator/controllers/raycluster_controller.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 36: warning: exported var DefaultRequeueDuration should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign86%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!