Preparing report...

Report for github.com/cogolabs/fleet2kubes

A+    Excellent!    Found 8 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!


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.


golint50%

Golint is a linter for Go source code.

    • fleet2kubes/pkg/kubes/service.go
    • Line 3: warning: exported type Service should have comment or be unexported (golint)
    • Line 23: warning: exported type ServicePort should have comment or be unexported (golint)
    • Line 29: warning: exported function NewService should have comment or be unexported (golint)
    • fleet2kubes/pkg/fleet-unit/unit.go
    • Line 28: warning: exported function NewUnitFile should have comment or be unexported (golint)
    • Line 38: warning: exported function NewUnitFromOptions should have comment or be unexported (golint)
    • Line 125: warning: exported method UnitFile.Bytes should have comment or be unexported (golint)
    • Line 168: warning: comment on exported type Hash should be of the form "Hash ..." (with optional leading article) (golint)
    • Line 175: warning: exported method Hash.Short should have comment or be unexported (golint)
    • Line 179: warning: exported method Hash.Empty should have comment or be unexported (golint)
    • Line 183: warning: exported function HashFromHexString should have comment or be unexported (golint)
    • Line 206: warning: exported function NewUnitState should have comment or be unexported (golint)
    • fleet2kubes/pkg/unit/mflag.go
    • Line 22: warning: exported type FlagSet should have comment or be unexported (golint)
    • Line 92: warning: don't use underscores in Go names; var has_value should be hasValue (golint)
    • Line 168: warning: exported method FlagSet.Args should have comment or be unexported (golint)
    • Line 172: warning: exported method FlagSet.Values should have comment or be unexported (golint)
    • Line 176: warning: exported method FlagSet.Env should have comment or be unexported (golint)
    • fleet2kubes/pkg/unit/unit.go
    • Line 7: warning: exported type Unit should have comment or be unexported (golint)
    • Line 21: warning: exported function NewUnit should have comment or be unexported (golint)
    • Line 32: warning: exported method Unit.FirstValue should have comment or be unexported (golint)
    • fleet2kubes/pkg/unit/validate.go
    • Line 8: warning: exported method Unit.ValidateAll should have comment or be unexported (golint)
    • Line 24: warning: exported method Unit.ValidateKeys should have comment or be unexported (golint)
    • Line 41: warning: exported method Unit.ValidateExecStartPre should have comment or be unexported (golint)
    • Line 57: warning: exported method Unit.ValidateExecStart should have comment or be unexported (golint)
    • Line 71: warning: exported method Unit.ValidateExecStartPost should have comment or be unexported (golint)
    • fleet2kubes/pkg/kubes/container.go
    • Line 3: warning: exported type Container should have comment or be unexported (golint)
    • Line 12: warning: exported type Port should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 21: warning: exported type Env should have comment or be unexported (golint)
    • Line 23: warning: exported type Resources should have comment or be unexported (golint)
    • Line 43: warning: exported function NewResources should have comment or be unexported (golint)
    • fleet2kubes/pkg/kubes/cronjob.go
    • Line 21: warning: exported type CronJob should have comment or be unexported (golint)
    • Line 45: warning: exported type Annotations should have comment or be unexported (golint)
    • Line 85: warning: exported function NewCronJob should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words