Preparing report...

Report for github.com/sagikazarmark/bingo

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


golint42%

Golint is a linter for Go source code.

    • bingo/bin.go
    • Line 13: warning: exported type Bin should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 35: warning: comment on exported method Bin.Index should be of the form "Index ..." (golint)
    • Line 54: warning: comment on exported method Bin.AddEndpoint should be of the form "AddEndpoint ..." (golint)
    • Line 59: warning: comment on exported method Bin.AddGroup should be of the form "AddGroup ..." (golint)
    • bingo/endpoint.go
    • Line 11: warning: exported type Parameters should have comment or be unexported (golint)
    • Line 13: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 22: warning: exported type EndpointCollector should have comment or be unexported (golint)
    • Line 26: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 53: warning: comment on exported method Endpoint.BuildUri should be of the form "BuildUri ..." (golint)
    • Line 68: warning: exported method Parameters.Set should have comment or be unexported (golint)
    • bingo/group.go
    • Line 5: warning: comment on exported type Group should be of the form "Group ..." (with optional leading article) (golint)
    • Line 12: warning: exported function NewGroup should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method Group.AddEndpoint should be of the form "AddEndpoint ..." (golint)
    • bingo/handler.go
    • Line 10: warning: comment on exported function NewHandler should be of the form "NewHandler ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign57%

IneffAssign detects ineffectual assignments in Go code.

    • bingo/bin_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • bingo/handler.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/elazarl/go-bindata-assetfs (invalid package name: "") (ineffassign)
    • Line 31: warning: undeclared name: assetfs (ineffassign)
    • Line 31: warning: undeclared name: Asset (ineffassign)
    • Line 31: warning: undeclared name: AssetDir (ineffassign)
    • Line 31: warning: undeclared name: AssetInfo (ineffassign)
    • Line 6: warning: "github.com/elazarl/go-bindata-assetfs" imported but not used (ineffassign)
    • Line 6: warning: could not import github.com/elazarl/go-bindata-assetfs (invalid package name: "") (ineffassign)
    • Line 31: warning: undeclared name: assetfs (ineffassign)
    • Line 31: warning: undeclared name: Asset (ineffassign)
    • Line 31: warning: undeclared name: AssetDir (ineffassign)
    • Line 31: warning: undeclared name: AssetInfo (ineffassign)
    • Line 6: warning: "github.com/elazarl/go-bindata-assetfs" imported but not used (ineffassign)
    • bingo/bin.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 38: warning: undeclared name: Asset (ineffassign)
    • Line 10: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 38: warning: undeclared name: Asset (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!