Preparing report...

Report for github.com/Trendyol/kink

B    Not bad!    Found 8 issues across 11 files

Tweet

gofmt54%

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!


gocyclo72%

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.


golint45%

Golint is a linter for Go source code.

    • kink/cmd/version.go
    • Line 45: warning: exported function NewCmdVersion should have comment or be unexported (golint)
    • Line 72: warning: exported type Info should have comment or be unexported (golint)
    • Line 82: warning: exported function VersionInfo should have comment or be unexported (golint)
    • kink/pkg/types/types.go
    • Line 19: warning: exported const NodeImageRepository should have comment or be unexported (golint)
    • Line 20: warning: exported const ImageRepository should have comment or be unexported (golint)
    • Line 21: warning: exported const NodeImageTag should have comment or be unexported (golint)
    • Line 22: warning: exported const ImageTag should have comment or be unexported (golint)
    • kink/pkg/kubernetes/kubernetes.go
    • Line 31: warning: exported function ManagedAnnotations should have comment or be unexported (golint)
    • Line 38: warning: exported function DefaultClientConfig should have comment or be unexported (golint)
    • Line 44: warning: exported function RestClientConfig should have comment or be unexported (golint)
    • Line 63: warning: exported function Client should have comment or be unexported (golint)
    • kink/cmd/delete.go
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 136: warning: context.Context should be the first parameter of a function (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!


misspell90%

Misspell Finds commonly misspelled English words