Preparing report...

Report for github.com/alibaba/open-simulator

A+    Excellent!    Found 10 issues across 16 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo81%

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.


golint37%

Golint is a linter for Go source code.

    • open-simulator/pkg/utils/const.go
    • Line 3: warning: exported const ColorReset should have comment or be unexported (golint)
    • Line 4: warning: exported const ColorRed should have comment or be unexported (golint)
    • Line 5: warning: exported const ColorGreen should have comment or be unexported (golint)
    • Line 6: warning: exported const ColorYellow should have comment or be unexported (golint)
    • Line 7: warning: exported const ColorCyan should have comment or be unexported (golint)
    • open-simulator/pkg/utils/utils.go
    • Line 127: warning: exported function GetMasterFromKubeConfig should have comment or be unexported (golint)
    • Line 144: warning: exported function InitKubeSchedulerConfiguration should have comment or be unexported (golint)
    • Line 164: warning: exported function GetRecorderFactory should have comment or be unexported (golint)
    • Line 189: warning: exported function MakeValidPodsByDeployment should have comment or be unexported (golint)
    • Line 206: warning: exported function MakeValidPodsByStatefulSet should have comment or be unexported (golint)
    • Line 223: warning: exported function MakeValidPodsByDaemonset should have comment or be unexported (golint)
    • Line 235: warning: exported function NodeShouldRunDaemonPod should have comment or be unexported (golint)
    • Line 244: warning: exported function NewDaemonPod should have comment or be unexported (golint)
    • Line 254: warning: exported function MakeValidPodByPod should have comment or be unexported (golint)
    • Line 434: warning: exported function AdjustWorkloads should have comment or be unexported (golint)
    • Line 444: warning: exported function AdjustNodesOrder should have comment or be unexported (golint)
    • Line 450: warning: exported type NodeQueue should have comment or be unexported (golint)
    • Line 454: warning: exported function NewNodeQueue should have comment or be unexported (golint)
    • Line 500: warning: exported function GetNodeAllocatable should have comment or be unexported (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!