Preparing report...

Report for github.com/pipizhang/korkort

A    Great!    Found 7 issues across 9 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!


golint33%

Golint is a linter for Go source code.

    • korkort/korkort/config.go
    • Line 12: warning: exported var Cfg should have comment or be unexported (golint)
    • Line 15: warning: exported function InitConfig should have comment or be unexported (golint)
    • korkort/korkort/item.go
    • Line 13: warning: exported type IQuestion should have comment or be unexported (golint)
    • Line 22: warning: exported type IChoice should have comment or be unexported (golint)
    • Line 27: warning: exported type IImage should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method IQuestion.ParseContent should be of the form "ParseContent ..." (golint)
    • Line 40: warning: exported method IQuestion.ParseExplanation should have comment or be unexported (golint)
    • Line 45: warning: comment on exported method IQuestion.ParseOrignalID should be of the form "ParseOrignalID ..." (golint)
    • Line 55: warning: comment on exported method IQuestion.ParseCategory should be of the form "ParseCategory ..." (golint)
    • Line 65: warning: exported method IQuestion.AddChoice should have comment or be unexported (golint)
    • Line 71: warning: exported method IQuestion.AddImage should have comment or be unexported (golint)
    • Line 78: warning: exported method IQuestion.GetImageFileName should have comment or be unexported (golint)
    • Line 86: warning: exported method IQuestion.Save should have comment or be unexported (golint)
    • Line 147: warning: exported method IChoice.Parse should have comment or be unexported (golint)
    • Line 159: warning: exported method IImage.GetFilePath should have comment or be unexported (golint)
    • Line 164: warning: exported method IImage.Download should have comment or be unexported (golint)
    • korkort/korkort/model.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported function GetDB should have comment or be unexported (golint)
    • Line 23: warning: exported type Question should have comment or be unexported (golint)
    • Line 35: warning: exported type Choice should have comment or be unexported (golint)
    • korkort/korkort/util.go
    • Line 14: warning: exported function IsFile should have comment or be unexported (golint)
    • Line 21: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 26: warning: exported function DownloadImage should have comment or be unexported (golint)
    • Line 57: warning: exported function RandStringBytes should have comment or be unexported (golint)
    • Line 67: warning: exported function GetFileExtension should have comment or be unexported (golint)
    • korkort/main.go
    • Line 10: warning: exported const APP_NAME should have comment (or a comment on this block) or be unexported (golint)
    • korkort/korkort/action.go
    • Line 13: warning: exported function Setup should have comment or be unexported (golint)
    • Line 22: warning: exported function Scrape should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.


misspell77%

Misspell Finds commonly misspelled English words