Preparing report...

Report for github.com/generaltso/vibrant

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


gocyclo90%

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.


golint54%

Golint is a linter for Go source code.

    • vibrant/cmd/vibrant/vibrant.go
    • Line 20: warning: don't use underscores in Go names; var input_stdin should be inputStdin (golint)
    • Line 21: warning: don't use underscores in Go names; var output_json should be outputJSON (golint)
    • Line 22: warning: don't use underscores in Go names; var output_css should be outputCSS (golint)
    • Line 23: warning: don't use underscores in Go names; var output_compress should be outputCompress (golint)
    • Line 24: warning: don't use underscores in Go names; var output_lowercase should be outputLowercase (golint)
    • Line 25: warning: don't use underscores in Go names; var output_rgb should be outputRgb (golint)
    • Line 126: warning: don't use underscores in Go names; func print_json should be printJSON (golint)
    • Line 158: warning: don't use underscores in Go names; func print_css should be printCSS (golint)
    • Line 201: warning: don't use underscores in Go names; func print_plain should be printPlain (golint)
    • vibrant/color.go
    • Line 11: warning: exported type Color should have comment or be unexported (golint)
    • Line 18: warning: exported method Color.RGB should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method Color.RGBHex should be of the form "RGBHex ..." (golint)
    • Line 28: warning: comment on exported method Color.TextColor should be of the form "TextColor ..." (golint)
    • Line 36: warning: comment on exported method Color.TitleTextColor should be of the form "TitleTextColor ..." (golint)
    • Line 41: warning: comment on exported method Color.BodyTextColor should be of the form "BodyTextColor ..." (golint)
    • vibrant/palette.go
    • Line 32: warning: exported type Palette should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function NewPaletteFromImage should be of the form "NewPaletteFromImage ..." (golint)
    • Line 44: warning: exported function NewPalette should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method Palette.ExtractAwesome should be of the form "ExtractAwesome ..." (golint)
    • Line 150: warning: comment on exported method Palette.FindColor should be of the form "FindColor ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign81%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!