Preparing report...

Report for github.com/muesli/beehive

A+    Excellent!    Found 43 issues across 177 files

Tweet

gofmt96%

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!


gocyclo94%

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.

    • beehive/bees/ircbee/ircbee.go
    • Line 59: warning: cyclomatic complexity 18 of function (*IrcBee).Action() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 16 of function (*IrcBee).Run() is high (> 15) (gocyclo)

golint87%

Golint is a linter for Go source code.

    • beehive/bees/instapaperbee/instapaperbeefactory.go
    • Line 25: warning: exported type InstapaperBeeFactory should have comment or be unexported (golint)
    • Line 29: warning: exported method InstapaperBeeFactory.New should have comment or be unexported (golint)
    • Line 37: warning: exported method InstapaperBeeFactory.ID should have comment or be unexported (golint)
    • Line 41: warning: exported method InstapaperBeeFactory.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method InstapaperBeeFactory.Description should have comment or be unexported (golint)
    • Line 49: warning: exported method InstapaperBeeFactory.Image should have comment or be unexported (golint)
    • Line 53: warning: exported method InstapaperBeeFactory.LogoColor should have comment or be unexported (golint)
    • Line 57: warning: exported method InstapaperBeeFactory.Options should have comment or be unexported (golint)
    • Line 75: warning: exported method InstapaperBeeFactory.Actions should have comment or be unexported (golint)
    • beehive/bees/cleverbotbee/cleverbotbee.go
    • Line 36: warning: don't use underscores in Go names; struct field api_user should be apiUser (golint)
    • Line 37: warning: don't use underscores in Go names; struct field api_key should be apiKey (golint)
    • Line 38: warning: don't use underscores in Go names; struct field session_nick should be sessionNick (golint)
    • beehive/bees/s3bee/s3bee.go
    • Line 33: warning: exported type S3Bee should have comment or be unexported (golint)
    • Line 68: warning: exported method S3Bee.ReloadOptions should have comment or be unexported (golint)
    • beehive/bees/fsnotifybee/fsnotifybee.go
    • Line 28: warning: exported type FSNotifyBee should have comment or be unexported (golint)
    • Line 32: warning: exported method FSNotifyBee.Run should have comment or be unexported (golint)
    • Line 60: warning: exported method FSNotifyBee.ReloadOptions should have comment or be unexported (golint)
    • beehive/bees/cricketbee/cricketbee.go
    • Line 28: warning: exported type CricketBee should have comment or be unexported (golint)
    • Line 83: warning: exported method CricketBee.Run should have comment or be unexported (golint)
    • Line 101: warning: receiver name mod should be consistent with previous receiver name c for CricketBee (golint)
    • beehive/cfg/filebackend.go
    • Line 14: warning: exported type Format should have comment or be unexported (golint)
    • Line 17: warning: exported const FormatJSON should have comment (or a comment on this block) or be unexported (golint)
    • beehive/bees/instapaperbee/instapaperbee.go
    • Line 30: warning: exported type InstapaperBee should have comment or be unexported (golint)
    • Line 37: warning: exported method InstapaperBee.Action should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; var page_url should be pageURL (golint)
    • Line 67: warning: exported method InstapaperBee.ReloadOptions should have comment or be unexported (golint)
    • beehive/bees/context.go
    • Line 28: warning: exported type Context should have comment or be unexported (golint)
    • Line 32: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 38: warning: exported method Context.Set should have comment or be unexported (golint)
    • Line 45: warning: exported method Context.Value should have comment or be unexported (golint)
    • Line 49: warning: exported method Context.FillMap should have comment or be unexported (golint)
    • Line 57: warning: exported method Bee.ContextSet should have comment or be unexported (golint)
    • Line 61: warning: exported method Bee.ContextValue should have comment or be unexported (golint)
    • beehive/api/bindata_stub.go
    • Line 3: warning: package comment should be of the form "Package api ..." (golint)
    • Line 9: warning: exported function Asset should have comment or be unexported (golint)
    • beehive/bees/rocketchatbee/client.go
    • Line 37: warning: exported type Client should have comment or be unexported (golint)
    • Line 66: warning: comment on exported type ErrorResponse should be of the form "ErrorResponse ..." (with optional leading article) (golint)
    • Line 71: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 133: warning: exported method Client.SendMessage should have comment or be unexported (golint)
    • Line 161: warning: comment on exported method Client.GetChannelID should be of the form "GetChannelID ..." (golint)
    • Line 179: warning: exported method Client.TestConnection should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)