Preparing report...

Report for github.com/joway/libimagequant-go

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


golint40%

Golint is a linter for Go source code.

    • libimagequant-go/pngquant/attributes.go
    • Line 11: warning: exported const SPEED_SLOWEST should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Attributes should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function NewAttributes should be of the form "NewAttributes ..." (golint)
    • Line 30: warning: comment on exported method Attributes.Release should be of the form "Release ..." (golint)
    • Line 35: warning: exported method Attributes.SetQuality should have comment or be unexported (golint)
    • Line 39: warning: exported method Attributes.SetSpeed should have comment or be unexported (golint)
    • libimagequant-go/pngquant/image.go
    • Line 13: warning: exported type Image should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function NewImage should be of the form "NewImage ..." (golint)
    • Line 34: warning: comment on exported method Image.Release should be of the form "Release ..." (golint)
    • Line 40: warning: exported method Image.Quantize should have comment or be unexported (golint)
    • libimagequant-go/pngquant/result.go
    • Line 12: warning: comment on exported type Result should be of the form "Result ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported method Result.Release should be of the form "Release ..." (golint)
    • Line 24: warning: exported method Result.WriteRemappedImage should have comment or be unexported (golint)
    • Line 40: warning: exported method Result.GetPalette should have comment or be unexported (golint)
    • Line 57: warning: exported method Result.GetImageWidth should have comment or be unexported (golint)
    • Line 62: warning: exported method Result.GetImageHeight should have comment or be unexported (golint)
    • libimagequant-go/pngquant/util.go
    • Line 8: warning: comment on exported function GoImageToRgba32 should be of the form "GoImageToRgba32 ..." (golint)
    • Line 31: warning: comment on exported function Rgb8PaletteToGoImage should be of the form "Rgb8PaletteToGoImage ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!