Preparing report...

Report for github.com/pojol/httpbot

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


golint73%

Golint is a linter for Go source code.

    • httpbot/factory/factory_opt.go
    • Line 82: warning: comment on exported function WithRunMode should be of the form "WithRunMode ..." (golint)
    • Line 131: warning: exported function WithMetadata should have comment or be unexported (golint)
    • httpbot/timeline/timeline.go
    • Line 31: warning: comment on exported method Timeline.GetCards should be of the form "GetCards ..." (golint)
    • Line 57: warning: exported method Step.GetName should have comment or be unexported (golint)
    • httpbot/internal/sizewg/sizewg.go
    • Line 17: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 35: warning: exported method SizeWaitGroup.EnterWithContext should have comment or be unexported (golint)
    • httpbot/internal/color/color.go
    • Line 127: warning: exported type Color should have comment or be unexported (golint)
    • Line 178: warning: exported method Color.Black should have comment or be unexported (golint)
    • Line 182: warning: exported method Color.Red should have comment or be unexported (golint)
    • Line 186: warning: exported method Color.Green should have comment or be unexported (golint)
    • Line 190: warning: exported method Color.Yellow should have comment or be unexported (golint)
    • Line 194: warning: exported method Color.Blue should have comment or be unexported (golint)
    • Line 198: warning: exported method Color.Magenta should have comment or be unexported (golint)
    • Line 202: warning: exported method Color.Cyan should have comment or be unexported (golint)
    • Line 206: warning: exported method Color.White should have comment or be unexported (golint)
    • Line 210: warning: exported method Color.Grey should have comment or be unexported (golint)
    • Line 214: warning: exported method Color.BlackBg should have comment or be unexported (golint)
    • Line 218: warning: exported method Color.RedBg should have comment or be unexported (golint)
    • Line 222: warning: exported method Color.GreenBg should have comment or be unexported (golint)
    • Line 226: warning: exported method Color.YellowBg should have comment or be unexported (golint)
    • Line 230: warning: exported method Color.BlueBg should have comment or be unexported (golint)
    • Line 234: warning: exported method Color.MagentaBg should have comment or be unexported (golint)
    • Line 238: warning: exported method Color.CyanBg should have comment or be unexported (golint)
    • Line 242: warning: exported method Color.WhiteBg should have comment or be unexported (golint)
    • Line 246: warning: exported method Color.Reset should have comment or be unexported (golint)
    • Line 250: warning: exported method Color.Bold should have comment or be unexported (golint)
    • Line 254: warning: exported method Color.Dim should have comment or be unexported (golint)
    • Line 258: warning: exported method Color.Italic should have comment or be unexported (golint)
    • Line 262: warning: exported method Color.Underline should have comment or be unexported (golint)
    • Line 266: warning: exported method Color.Inverse should have comment or be unexported (golint)
    • Line 270: warning: exported method Color.Hidden should have comment or be unexported (golint)
    • Line 274: warning: exported method Color.Strikeout should have comment or be unexported (golint)
    • Line 288: warning: exported function Disable should have comment or be unexported (golint)
    • Line 292: warning: exported function Enable should have comment or be unexported (golint)
    • Line 311: warning: exported function Black should have comment or be unexported (golint)
    • Line 315: warning: exported function Red should have comment or be unexported (golint)
    • Line 319: warning: exported function Green should have comment or be unexported (golint)
    • Line 323: warning: exported function Yellow should have comment or be unexported (golint)
    • Line 327: warning: exported function Blue should have comment or be unexported (golint)
    • Line 331: warning: exported function Magenta should have comment or be unexported (golint)
    • Line 335: warning: exported function Cyan should have comment or be unexported (golint)
    • Line 339: warning: exported function White should have comment or be unexported (golint)
    • Line 343: warning: exported function Grey should have comment or be unexported (golint)
    • Line 347: warning: exported function BlackBg should have comment or be unexported (golint)
    • Line 351: warning: exported function RedBg should have comment or be unexported (golint)
    • Line 355: warning: exported function GreenBg should have comment or be unexported (golint)
    • Line 359: warning: exported function YellowBg should have comment or be unexported (golint)
    • Line 363: warning: exported function BlueBg should have comment or be unexported (golint)
    • Line 367: warning: exported function MagentaBg should have comment or be unexported (golint)
    • Line 371: warning: exported function CyanBg should have comment or be unexported (golint)
    • Line 375: warning: exported function WhiteBg should have comment or be unexported (golint)
    • Line 379: warning: exported function Reset should have comment or be unexported (golint)
    • Line 383: warning: exported function Bold should have comment or be unexported (golint)
    • Line 387: warning: exported function Dim should have comment or be unexported (golint)
    • Line 391: warning: exported function Italic should have comment or be unexported (golint)
    • Line 395: warning: exported function Underline should have comment or be unexported (golint)
    • Line 399: warning: exported function Inverse should have comment or be unexported (golint)
    • Line 403: warning: exported function Hidden should have comment or be unexported (golint)
    • Line 407: warning: exported function Strikeout should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!