Preparing report...

Report for github.com/celrenheit/spider

A+    Excellent!    Found 7 issues across 14 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!


golint57%

Golint is a linter for Go source code.

    • spider/examples/wiki.go
    • Line 38: warning: exported type WikipediaHTMLSpider should have comment or be unexported (golint)
    • Line 42: warning: exported method WikipediaHTMLSpider.Setup should have comment or be unexported (golint)
    • Line 47: warning: exported method WikipediaHTMLSpider.Spin should have comment or be unexported (golint)
    • Line 62: warning: exported type WikipediaJSONSpider should have comment or be unexported (golint)
    • Line 66: warning: exported method WikipediaJSONSpider.Setup should have comment or be unexported (golint)
    • Line 73: warning: exported method WikipediaJSONSpider.Spin should have comment or be unexported (golint)
    • spider/schedule/constant.go
    • Line 5: warning: exported type ConstantSchedule should have comment or be unexported (golint)
    • Line 20: warning: exported method ConstantSchedule.Next should have comment or be unexported (golint)
    • spider/schedule/cron.go
    • Line 9: warning: exported type CronSchedule should have comment or be unexported (golint)
    • Line 21: warning: exported method CronSchedule.Next should have comment or be unexported (golint)
    • spider/schedule/random.go
    • Line 42: warning: exported method RandomInterval.RandomRange should have comment or be unexported (golint)
    • Line 48: warning: exported method RandomInterval.Next should have comment or be unexported (golint)
    • spider/context.go
    • Line 20: warning: exported var ErrNoClient should have comment or be unexported (golint)
    • Line 221: warning: comment on exported method Context.SetParent should be of the form "SetParent ..." (golint)
    • Line 252: warning: exported type BackoffCondition should have comment or be unexported (golint)
    • Line 254: warning: exported function ErrorIfStatusCodeIsNot should have comment or be unexported (golint)
    • spider/doc.go
    • Line 3: warning: package comment should be of the form "Package spider ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign71%

IneffAssign detects ineffectual assignments in Go code.

    • spider/context.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/PuerkitoBio/goquery (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/bitly/go-simplejson (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/cenkalti/backoff (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import golang.org/x/net/publicsuffix (invalid package name: "") (ineffassign)
    • Line 78: warning: undeclared name: simplejson (ineffassign)
    • Line 81: warning: undeclared name: simplejson (ineffassign)
    • Line 14: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • Line 13: warning: could not import github.com/PuerkitoBio/goquery (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/bitly/go-simplejson (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/cenkalti/backoff (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import golang.org/x/net/publicsuffix (invalid package name: "") (ineffassign)
    • Line 78: warning: undeclared name: simplejson (ineffassign)
    • Line 81: warning: undeclared name: simplejson (ineffassign)
    • Line 14: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • spider/inmemory_test.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/celrenheit/spider (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/celrenheit/spider/schedule (invalid package name: "") (ineffassign)
    • spider/examples/wiki.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/celrenheit/spider (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/celrenheit/spider/schedule (invalid package name: "") (ineffassign)
    • spider/schedule/cron.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gorhill/cronexpr (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/gorhill/cronexpr (invalid package name: "") (ineffassign)

misspell85%

Misspell Finds commonly misspelled English words