Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
colorstyle/bg_color.go
- Line 5: warning: exported type BgColor should have comment or be unexported (golint)
- Line 13: warning: exported const BgBlack should have comment (or a comment on this block) or be unexported (golint)
- Line 31: warning: comment on exported method CSS.BgBlack should be of the form "BgBlack ..." (golint)
- Line 38: warning: comment on exported method CSS.BgRed should be of the form "BgRed ..." (golint)
- Line 45: warning: comment on exported method CSS.BgGreen should be of the form "BgGreen ..." (golint)
- Line 52: warning: comment on exported method CSS.BgYellow should be of the form "BgYellow ..." (golint)
- Line 59: warning: comment on exported method CSS.BgBlue should be of the form "BgBlue ..." (golint)
- Line 66: warning: comment on exported method CSS.BgMagenta should be of the form "BgMagenta ..." (golint)
- Line 73: warning: comment on exported method CSS.BgCyan should be of the form "BgCyan ..." (golint)
- Line 80: warning: comment on exported method CSS.BgWhite should be of the form "BgWhite ..." (golint)
- Line 87: warning: comment on exported method CSS.BgGray should be of the form "BgGray ..." (golint)
- Line 94: warning: comment on exported method CSS.BgBrightRed should be of the form "BgBrightRed ..." (golint)
- Line 101: warning: comment on exported method CSS.BgBrightGreen should be of the form "BgBrightGreen ..." (golint)
- Line 108: warning: comment on exported method CSS.BgBrightYellow should be of the form "BgBrightYellow ..." (golint)
- Line 115: warning: comment on exported method CSS.BgBrightBlue should be of the form "BgBrightBlue ..." (golint)
- Line 122: warning: comment on exported method CSS.BgBrightMagenta should be of the form "BgBrightMagenta ..." (golint)
- Line 129: warning: comment on exported method CSS.BgBrightCyan should be of the form "BgBrightCyan ..." (golint)
- Line 137: warning: comment on exported method CSS.BgBrightWhite should be of the form "BgBrightWhite ..." (golint)
-
colorstyle/color.go
- Line 5: warning: exported type Color should have comment or be unexported (golint)
- Line 13: warning: exported const FgBlack should have comment (or a comment on this block) or be unexported (golint)
- Line 31: warning: comment on exported method CSS.ColorBlack should be of the form "ColorBlack ..." (golint)
- Line 38: warning: comment on exported method CSS.ColorRed should be of the form "ColorRed ..." (golint)
- Line 45: warning: comment on exported method CSS.ColorGreen should be of the form "ColorGreen ..." (golint)
- Line 52: warning: comment on exported method CSS.ColorYellow should be of the form "ColorYellow ..." (golint)
- Line 59: warning: comment on exported method CSS.ColorBule should be of the form "ColorBule ..." (golint)
- Line 66: warning: comment on exported method CSS.ColorMagenta should be of the form "ColorMagenta ..." (golint)
- Line 73: warning: comment on exported method CSS.ColorCyan should be of the form "ColorCyan ..." (golint)
- Line 80: warning: comment on exported method CSS.ColorWhite should be of the form "ColorWhite ..." (golint)
- Line 87: warning: comment on exported method CSS.ColorCray should be of the form "ColorCray ..." (golint)
- Line 94: warning: comment on exported method CSS.ColorBrightRed should be of the form "ColorBrightRed ..." (golint)
- Line 101: warning: comment on exported method CSS.ColorBrightGreen should be of the form "ColorBrightGreen ..." (golint)
- Line 108: warning: comment on exported method CSS.ColorBrightYellow should be of the form "ColorBrightYellow ..." (golint)
- Line 115: warning: comment on exported method CSS.ColorBrightBule should be of the form "ColorBrightBule ..." (golint)
- Line 122: warning: comment on exported method CSS.ColorBrightMagenta should be of the form "ColorBrightMagenta ..." (golint)
- Line 129: warning: comment on exported method CSS.ColorBrightCyan should be of the form "ColorBrightCyan ..." (golint)
- Line 136: warning: comment on exported method CSS.ColorBrightWhite should be of the form "ColorBrightWhite ..." (golint)
-
colorstyle/css.go
- Line 10: warning: exported const ANSI_SET should have comment (or a comment on this block) or be unexported (golint)
- Line 15: warning: exported type CSS should have comment or be unexported (golint)
- Line 21: warning: comment on exported function New should be of the form "New ..." (golint)
- Line 42: warning: comment on exported method CSS.DecoratedString should be of the form "DecoratedString ..." (golint)
- Line 63: warning: comment on exported method CSS.Println should be of the form "Println ..." (golint)
- Line 69: warning: comment on exported method CSS.Printf should be of the form "Printf ..." (golint)
- Line 75: warning: comment on exported method CSS.Sprint should be of the form "Sprint ..." (golint)
- Line 82: warning: comment on exported method CSS.Sprintf should be of the form "Sprintf ..." (golint)
- Line 88: warning: comment on exported function Black should be of the form "Black ..." (golint)
- Line 96: warning: comment on exported function Red should be of the form "Red ..." (golint)
- Line 104: warning: comment on exported function Green should be of the form "Green ..." (golint)
- Line 112: warning: comment on exported function Yellow should be of the form "Yellow ..." (golint)
- Line 120: warning: comment on exported function Blue should be of the form "Blue ..." (golint)
- Line 128: warning: comment on exported function Magenta should be of the form "Magenta ..." (golint)
- Line 136: warning: comment on exported function Cyan should be of the form "Cyan ..." (golint)
- Line 144: warning: comment on exported function White should be of the form "White ..." (golint)
- Line 152: warning: comment on exported function Gray should be of the form "Gray ..." (golint)
- Line 160: warning: comment on exported function BrightRed should be of the form "BrightRed ..." (golint)
- Line 168: warning: comment on exported function BrightYellow should be of the form "BrightYellow ..." (golint)
- Line 176: warning: comment on exported function BrightBlue should be of the form "BrightBlue ..." (golint)
- Line 184: warning: comment on exported function BrightMagenta should be of the form "BrightMagenta ..." (golint)
- Line 192: warning: comment on exported function BrightCyan should be of the form "BrightCyan ..." (golint)
- Line 200: warning: comment on exported function BrightWhite should be of the form "BrightWhite ..." (golint)
-
colorstyle/style.go
- Line 5: warning: exported type Style should have comment or be unexported (golint)
- Line 13: warning: exported const Normal should have comment (or a comment on this block) or be unexported (golint)
- Line 25: warning: comment on exported method CSS.StyleDefault should be of the form "StyleDefault ..." (golint)
- Line 32: warning: comment on exported method CSS.StyleBold should be of the form "StyleBold ..." (golint)
- Line 39: warning: comment on exported method CSS.StyleGrey should be of the form "StyleGrey ..." (golint)
- Line 50: warning: exported method CSS.StyleItalic should have comment or be unexported (golint)
- Line 54: warning: comment on exported method CSS.StyleUnderline should be of the form "StyleUnderline ..." (golint)
- Line 61: warning: comment on exported method CSS.StyleRapidBlink should be of the form "StyleRapidBlink ..." (golint)
- Line 68: warning: comment on exported method CSS.StyleSlowBlink should be of the form "StyleSlowBlink ..." (golint)
- Line 75: warning: comment on exported method CSS.StyleReverse should be of the form "StyleReverse ..." (golint)
- Line 82: warning: comment on exported method CSS.StyleHide should be of the form "StyleHide ..." (golint)
- Line 89: warning: comment on exported method CSS.StyleStrikethrough should be of the form "StyleStrikethrough ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!