Preparing report...

Report for github.com/schollz/AwwKoala

(v2.12.0+incompatible)

A+    Excellent!    Found 6 issues across 11 files

Tweet

gofmt90%

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!


gocyclo90%

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.

    • handlers.go
    • Line 284: warning: cyclomatic complexity 45 of function handlePageRequest() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 17 of function serve() is high (> 15) (gocyclo)

golint54%

Golint is a linter for Go source code.

    • main.go
    • Line 28: warning: don't use underscores in Go names; var crt_f should be crtF (golint)
    • Line 29: warning: don't use underscores in Go names; var key_f should be keyF (golint)
    • page.go
    • Line 32: warning: exported method Page.LastEditTime should have comment or be unexported (golint)
    • Line 36: warning: exported method Page.LastEditUnixTime should have comment or be unexported (golint)
    • Line 40: warning: exported function Open should have comment or be unexported (golint)
    • Line 56: warning: exported type DirectoryEntry should have comment or be unexported (golint)
    • Line 63: warning: exported method DirectoryEntry.LastEditTime should have comment or be unexported (golint)
    • Line 67: warning: exported method DirectoryEntry.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method DirectoryEntry.Size should have comment or be unexported (golint)
    • Line 75: warning: exported method DirectoryEntry.Mode should have comment or be unexported (golint)
    • Line 79: warning: exported method DirectoryEntry.ModTime should have comment or be unexported (golint)
    • Line 83: warning: exported method DirectoryEntry.IsDir should have comment or be unexported (golint)
    • Line 87: warning: exported method DirectoryEntry.Sys should have comment or be unexported (golint)
    • Line 91: warning: exported function DirectoryList should have comment or be unexported (golint)
    • Line 108: warning: exported type UploadEntry should have comment or be unexported (golint)
    • Line 112: warning: exported function UploadList should have comment or be unexported (golint)
    • Line 127: warning: exported function DecodeFileName should have comment or be unexported (golint)
    • Line 149: warning: exported method Page.Render should have comment or be unexported (golint)
    • Line 166: warning: exported method Page.Save should have comment or be unexported (golint)
    • Line 176: warning: exported method Page.ChildPageNames should have comment or be unexported (golint)
    • Line 196: warning: exported method Page.IsNew should have comment or be unexported (golint)
    • Line 200: warning: exported method Page.Erase should have comment or be unexported (golint)
    • Line 205: warning: exported method Page.Published should have comment or be unexported (golint)
    • utils.go
    • Line 174: warning: comment on exported function CheckPasswordHash should be of the form "CheckPasswordHash ..." (golint)
    • Line 197: warning: exported function MarkdownToHtml should have comment or be unexported (golint)
    • Line 217: warning: exported function GithubMarkdownToHTML should have comment or be unexported (golint)
    • encrypt/encrypt.go
    • Line 10: warning: exported function EncryptString should have comment or be unexported (golint)
    • Line 20: warning: exported function DecryptString should have comment or be unexported (golint)
    • handlers.go
    • Line 38: warning: don't use underscores in Go names; func parameter crt_path should be crtPath (golint)
    • Line 39: warning: don't use underscores in Go names; func parameter key_path should be keyPath (golint)
    • Line 242: warning: don't use underscores in Go names; func thread_SiteMap should be threadSiteMap (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!


misspell90%

Misspell Finds commonly misspelled English words

    • handlers.go
    • Line 114: warning: "nessecary" is a misspelling of "necessary" (misspell)
    • Line 576: warning: "suceeds" is a misspelling of "succeeds" (misspell)