Preparing report...

Report for github.com/kuops/go-example-app

D    Needs lots of improvement    Found 13 issues across 14 files

Tweet

gofmt7%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint7%

Golint is a linter for Go source code.

    • go-example-app/models/auth.go
    • Line 7: warning: exported type AuthUser should have comment or be unexported (golint)
    • Line 12: warning: exported function CheckPassword should have comment or be unexported (golint)
    • go-example-app/models/user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 17: warning: exported method User.Verify should have comment or be unexported (golint)
    • Line 29: warning: exported method User.FindUser should have comment or be unexported (golint)
    • Line 34: warning: exported function FindAllUser should have comment or be unexported (golint)
    • Line 38: warning: exported method User.Create should have comment or be unexported (golint)
    • go-example-app/config/config.go
    • Line 10: warning: exported var Port should have comment or be unexported (golint)
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 21: warning: exported function InitConfig should have comment or be unexported (golint)
    • go-example-app/controllers/login.go
    • Line 10: warning: exported function PreLogin should have comment or be unexported (golint)
    • Line 14: warning: exported function Login should have comment or be unexported (golint)
    • Line 31: warning: exported function Logout should have comment or be unexported (golint)
    • go-example-app/utils/database.go
    • Line 19: warning: exported function DatabaseStuff should have comment or be unexported (golint)
    • Line 24: warning: exported function ArticleStuff should have comment or be unexported (golint)
    • Line 43: warning: exported function UserStuff 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!