Preparing report...

Report for github.com/GetGoBlog/GoBlog

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


golint50%

Golint is a linter for Go source code.

    • GoBlog/main.go
    • Line 20: warning: exported const STATIC_FILES_DIR should have comment or be unexported (golint)
    • Line 22: warning: exported type BlogDetails should have comment or be unexported (golint)
    • Line 67: warning: exported function LoginPage should have comment or be unexported (golint)
    • Line 82: warning: exported function LoginHandler should have comment or be unexported (golint)
    • Line 93: warning: exported function LogoutHandler should have comment or be unexported (golint)
    • Line 108: warning: exported function MainPage should have comment or be unexported (golint)
    • Line 122: warning: exported function ErrorPage should have comment or be unexported (golint)
    • Line 135: warning: exported function SignupPage should have comment or be unexported (golint)
    • Line 145: warning: exported function SignupHandler should have comment or be unexported (golint)
    • Line 168: warning: exported function AdminPage should have comment or be unexported (golint)
    • Line 187: warning: exported function BlogCreationHandler should have comment or be unexported (golint)
    • Line 340: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 355: warning: exported function RandomString should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • GoBlog/main.go
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: could not import github.com/boltdb/bolt (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!