Preparing report...

Report for github.com/paralin/skiff-core

C    Needs some work    Found 8 issues across 37 files

Tweet

gofmt0%

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

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/paralin/skiff-core/util/execcmd/stat .#execcmd.go: no such file or directory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " no such file or directory": invalid syntax)


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!


gocyclo89%

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.


golint83%

Golint is a linter for Go source code.

    • skiff-core/setup/setup_container.go
    • Line 193: warning: receiver name i should be consistent with previous receiver name cs for ContainerSetup (golint)
    • Line 202: warning: receiver name i should be consistent with previous receiver name cs for ContainerSetup (golint)
    • skiff-core/config/core_config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 118: warning: don't use underscores in Go names; const ConfigPullPolicy_Always should be ConfigPullPolicyAlways (golint)
    • Line 118: warning: exported const ConfigPullPolicy_Always should have comment (or a comment on this block) or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; const ConfigPullPolicy_IfNotPresent should be ConfigPullPolicyIfNotPresent (golint)
    • Line 120: warning: don't use underscores in Go names; const ConfigPullPolicy_IfBuildFails should be ConfigPullPolicyIfBuildFails (golint)
    • Line 163: warning: comment on exported method ConfigImagePull.FillDefaults should be of the form "FillDefaults ..." (golint)
    • Line 201: warning: receiver name b should be consistent with previous receiver name c for ConfigImageBuild (golint)
    • Line 272: warning: comment on exported function UnmarshalConfigUserShell should be of the form "UnmarshalConfigUserShell ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!