Preparing report...

Report for github.com/escaletech/tog-go

A+    Excellent!    Found 6 issues across 11 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!


golint45%

Golint is a linter for Go source code.

    • tog-go/flags/types.go
    • Line 8: warning: exported type ClientOptions should have comment or be unexported (golint)
    • Line 13: warning: exported type Flag should have comment or be unexported (golint)
    • Line 21: warning: exported type Rollout should have comment or be unexported (golint)
    • Line 27: warning: exported type MultiError should have comment or be unexported (golint)
    • tog-go/internal/keys/keys.go
    • Line 3: warning: exported const PubSub should have comment or be unexported (golint)
    • Line 5: warning: exported function Flags should have comment or be unexported (golint)
    • tog-go/sessions/client.go
    • Line 30: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.Session should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.Close should have comment or be unexported (golint)
    • tog-go/sessions/types.go
    • Line 7: warning: exported type Session should have comment or be unexported (golint)
    • Line 9: warning: exported method Session.IsSet should have comment or be unexported (golint)
    • Line 14: warning: exported type SessionOptions should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 21: warning: exported type ClientOptions should have comment or be unexported (golint)
    • tog-go/flags/client.go
    • Line 17: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 28: warning: exported type Client should have comment or be unexported (golint)
    • Line 32: warning: exported method Client.ListFlags should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetFlag should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.SaveFlag should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.DeleteFlag should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.Close 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!