Preparing report...

Report for github.com/codegangsta/bwag

A    Great!    Found 12 issues across 15 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!


golint26%

Golint is a linter for Go source code.

    • bwag/controllers/example.go
    • Line 9: warning: exported type MyController should have comment or be unexported (golint)
    • Line 14: warning: exported method MyController.Index should have comment or be unexported (golint)
    • bwag/databases/example.go
    • Line 18: warning: exported function ShowBooks should have comment or be unexported (golint)
    • Line 30: warning: exported function NewDB should have comment or be unexported (golint)
    • bwag/url_routing/example.go
    • Line 27: warning: exported function HomeHandler should have comment or be unexported (golint)
    • Line 31: warning: exported function PostsIndexHandler should have comment or be unexported (golint)
    • Line 35: warning: exported function PostsCreateHandler should have comment or be unexported (golint)
    • Line 39: warning: exported function PostShowHandler should have comment or be unexported (golint)
    • Line 44: warning: exported function PostUpdateHandler should have comment or be unexported (golint)
    • Line 48: warning: exported function PostDeleteHandler should have comment or be unexported (golint)
    • Line 52: warning: exported function PostEditHandler should have comment or be unexported (golint)
    • bwag/controllers/controller.go
    • Line 5: warning: exported type Action should have comment or be unexported (golint)
    • Line 7: warning: exported type AppController should have comment or be unexported (golint)
    • Line 9: warning: exported method AppController.Action should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign46%

IneffAssign detects ineffectual assignments in Go code.

    • bwag/rendering/render/example.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import gopkg.in/unrolled/render.v1 (invalid package name: "") (ineffassign)
    • Line 10: warning: undeclared name: render (ineffassign)
    • Line 10: warning: undeclared name: render (ineffassign)
    • Line 6: warning: "gopkg.in/unrolled/render.v1" imported but not used (ineffassign)
    • bwag/middleware/example.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • bwag/url_routing/example.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • bwag/deployment/example.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/russross/blackfriday (invalid package name: "") (ineffassign)
    • bwag/databases/example.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/mattn/go-sqlite3 (invalid package name: "") (ineffassign)
    • bwag/testing/end_to_end/example.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • bwag/controllers/example.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import gopkg.in/unrolled/render.v1 (invalid package name: "") (ineffassign)
    • Line 11: warning: undeclared name: render (ineffassign)
    • Line 15: warning: c.JSON undefined (type *MyController has no field or method JSON) (ineffassign)
    • Line 20: warning: undeclared name: render (ineffassign)
    • Line 20: warning: undeclared name: render (ineffassign)
    • Line 6: warning: "gopkg.in/unrolled/render.v1" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!