Preparing report...

Report for github.com/kmodules/offshoot-api

A    Great!    Found 8 issues across 9 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!


gocyclo77%

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.


golint22%

Golint is a linter for Go source code.

    • offshoot-api/api/v1/pvc.go
    • Line 24: warning: comment on exported type PartialObjectMeta should be of the form "PartialObjectMeta ..." (with optional leading article) (golint)
    • Line 111: warning: exported method PersistentVolumeClaim.ToCorePVC should have comment or be unexported (golint)
    • offshoot-api/api/v1/runtime_settings_types.go
    • Line 26: warning: exported type RuntimeSettings should have comment or be unexported (golint)
    • Line 31: warning: exported type PodRuntimeSettings should have comment or be unexported (golint)
    • Line 106: warning: exported type ContainerRuntimeSettings should have comment or be unexported (golint)
    • Line 159: warning: comment on exported type NiceSettings should be of the form "NiceSettings ..." (with optional leading article) (golint)
    • Line 164: warning: comment on exported type IONiceSettings should be of the form "IONiceSettings ..." (with optional leading article) (golint)
    • Line 170: warning: exported function NiceSettingsFromEnv should have comment or be unexported (golint)
    • Line 184: warning: exported function IONiceSettingsFromEnv should have comment or be unexported (golint)
    • offshoot-api/api/v1/types.go
    • Line 52: warning: exported type PodSpec should have comment or be unexported (golint)
    • Line 334: warning: comment on exported function PatchServicePorts should be of the form "PatchServicePorts ..." (golint)
    • offshoot-api/util/runtime_settings.go
    • Line 29: warning: exported const NiceAdjustment should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported function ApplyContainerRuntimeSettings should have comment or be unexported (golint)
    • Line 83: warning: exported function ApplyPodRuntimeSettings 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!