Preparing report...

Report for github.com/codefresh-io/cli-v2

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


gocyclo100%

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.

No problems detected. Good job!


golint37%

Golint is a linter for Go source code.

    • cli-v2/pkg/log/log.go
    • Line 10: warning: exported var G should have comment or be unexported (golint)
    • Line 17: warning: exported type NopLogger should have comment or be unexported (golint)
    • Line 20: warning: exported type Fields should have comment or be unexported (golint)
    • Line 22: warning: exported type Logger should have comment or be unexported (golint)
    • Line 43: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 51: warning: exported function SetDefault should have comment or be unexported (golint)
    • Line 55: warning: exported function GetLogger should have comment or be unexported (golint)
    • Line 76: warning: exported method NopLogger.AddPFlags should have comment or be unexported (golint)
    • Line 77: warning: exported method NopLogger.Printf should have comment or be unexported (golint)
    • Line 78: warning: exported method NopLogger.Debug should have comment or be unexported (golint)
    • Line 79: warning: exported method NopLogger.Info should have comment or be unexported (golint)
    • Line 80: warning: exported method NopLogger.Warn should have comment or be unexported (golint)
    • Line 81: warning: exported method NopLogger.Fatal should have comment or be unexported (golint)
    • Line 83: warning: exported method NopLogger.Debugf should have comment or be unexported (golint)
    • Line 84: warning: exported method NopLogger.Infof should have comment or be unexported (golint)
    • Line 85: warning: exported method NopLogger.Warnf should have comment or be unexported (golint)
    • Line 86: warning: exported method NopLogger.Fatalf should have comment or be unexported (golint)
    • Line 87: warning: exported method NopLogger.Errorf should have comment or be unexported (golint)
    • Line 88: warning: exported method NopLogger.WithField should have comment or be unexported (golint)
    • Line 89: warning: exported method NopLogger.WithFields should have comment or be unexported (golint)
    • Line 90: warning: exported method NopLogger.WithError should have comment or be unexported (golint)
    • cli-v2/pkg/log/logrus.go
    • Line 16: warning: exported type LogrusFormatter should have comment or be unexported (golint)
    • Line 18: warning: exported type LogrusConfig should have comment or be unexported (golint)
    • Line 29: warning: exported const FormatterText should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported function FromLogrus should have comment or be unexported (golint)
    • Line 41: warning: exported function GetLogrusEntry should have comment or be unexported (golint)
    • cli-v2/pkg/store/store.go
    • Line 18: warning: exported type Version should have comment or be unexported (golint)
    • Line 27: warning: exported type Store 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!