Preparing report...

Report for github.com/kjk/fofou

A    Great!    Found 8 issues across 14 files

Tweet

gofmt92%

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!


golint57%

Golint is a linter for Go source code.

    • fofou/store.go
    • Line 21: warning: exported type Post should have comment or be unexported (golint)
    • Line 31: warning: exported method Post.IpAddress should have comment or be unexported (golint)
    • Line 35: warning: exported method Post.IsTwitterUser should have comment or be unexported (golint)
    • Line 39: warning: exported method Post.UserName should have comment or be unexported (golint)
    • fofou/templates.go
    • Line 24: warning: exported function GetTemplates should have comment or be unexported (golint)
    • Line 36: warning: exported function ExecTemplate should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • fofou/util.go
    • Line 34: warning: comment on exported function UnCaps should be of the form "UnCaps ..." (golint)
    • fofou/handle_login.go
    • Line 15: warning: exported type SecureCookieValue should have comment or be unexported (golint)
    • Line 39: warning: exported const WeekInSeconds should have comment or be unexported (golint)
    • fofou/handle_topic.go
    • Line 16: warning: exported type PostDisplay should have comment or be unexported (golint)
    • Line 28: warning: exported method PostDisplay.CreatedOnStr should have comment or be unexported (golint)
    • Line 32: warning: exported function NewPostDisplay should have comment or be unexported (golint)
    • fofou/s3backup.go
    • Line 27: warning: comment on exported const MaxBackupsToKeep should be of the form "MaxBackupsToKeep ..." (golint)
    • Line 30: warning: exported type BackupConfig should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 219: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 257: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 306: warning: exported function BackupLoop should have comment or be unexported (golint)

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license0%

Checks whether your project has a LICENSE file.


misspell85%

Misspell Finds commonly misspelled English words

    • fofou/main.go
    • Line 426: warning: "runing" is a misspelling of "running" (misspell)
    • Line 434: warning: "runing" is a misspelling of "running" (misspell)
    • fofou/store.go
    • Line 389: warning: "retuns" is a misspelling of "returns" (misspell)
    • Line 396: warning: "retuns" is a misspelling of "returns" (misspell)