Preparing report...

Report for github.com/letsgo-framework/letsgo

B    Not bad!    Found 11 issues across 17 files

Tweet

gofmt47%

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!


golint47%

Golint is a linter for Go source code.

    • letsgo/controllers/auth_controller.go
    • Line 100: warning: comment on exported function Register should be of the form "Register ..." (golint)
    • Line 159: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 165: warning: comment on exported function AuthId should be of the form "AuthId ..." (golint)
    • Line 172: warning: comment on exported function AuthClient should be of the form "AuthClient ..." (golint)
    • Line 179: warning: comment on exported function AuthUser should be of the form "AuthUser ..." (golint)
    • letsgo/log/letslog.go
    • Line 18: warning: exported var Debug should have comment or be unexported (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 121: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 141: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 145: warning: exported function InitLogFuncs should have comment or be unexported (golint)
    • letsgo/mail/mail.go
    • Line 14: warning: exported type Mail should have comment or be unexported (golint)
    • Line 22: warning: exported type SmtpServer should have comment or be unexported (golint)
    • Line 27: warning: exported method SmtpServer.ServerName should have comment or be unexported (golint)
    • Line 31: warning: exported method Mail.BuildMessage should have comment or be unexported (golint)
    • Line 46: warning: exported function SendMail 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!


misspell94%

Misspell Finds commonly misspelled English words