Preparing report...

Report for github.com/aclements/go-gg

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


gocyclo80%

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.

    • go-gg/gg/scale.go
    • Line 598: warning: cyclomatic complexity 16 of function (*moremathScale).Ticks() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • go-gg/gg/layer.go
    • Line 29: warning: exported method LayerLines.Apply should have comment or be unexported (golint)
    • Line 68: warning: exported method LayerSteps.Apply should have comment or be unexported (golint)
    • Line 123: warning: exported method LayerPaths.Apply should have comment or be unexported (golint)
    • Line 172: warning: exported method LayerArea.Apply should have comment or be unexported (golint)
    • Line 222: warning: exported method LayerPoints.Apply should have comment or be unexported (golint)
    • Line 263: warning: exported method LayerTiles.Apply should have comment or be unexported (golint)
    • Line 311: warning: exported method LayerTags.Apply should have comment or be unexported (golint)
    • Line 353: warning: exported method LayerTooltips.Apply should have comment or be unexported (golint)
    • go-gg/gg/layout/grid.go
    • Line 35: warning: exported method Grid.Children should have comment or be unexported (golint)
    • Line 173: warning: exported method Grid.SizeHint should have comment or be unexported (golint)
    • Line 195: warning: exported method Grid.SetLayout should have comment or be unexported (golint)
    • Line 217: warning: exported method Grid.Layout should have comment or be unexported (golint)
    • go-gg/gg/facet.go
    • Line 97: warning: exported method FacetX.Apply should have comment or be unexported (golint)
    • Line 101: warning: exported method FacetY.Apply should have comment or be unexported (golint)
    • Line 105: warning: exported method FacetWrap.Apply should have comment or be unexported (golint)
    • go-gg/gg/scale.go
    • Line 44: warning: comment on exported type Scaler should be of the form "Scaler ..." (with optional leading article) (golint)
    • Line 164: warning: exported type ContinuousScaler should have comment or be unexported (golint)
    • Line 322: warning: exported function DefaultScale should have comment or be unexported (golint)
    • Line 388: warning: exported function NewIdentityScale should have comment or be unexported (golint)
    • Line 434: warning: exported function NewLogScaler should have comment or be unexported (golint)
    • Line 875: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1013: warning: exported function NewOrdinalScale should have comment or be unexported (golint)
    • Line 1141: warning: comment on exported type Ranger should be of the form "Ranger ..." (with optional leading article) (golint)
    • Line 1148: warning: exported type ContinuousRanger should have comment or be unexported (golint)
    • Line 1154: warning: exported type DiscreteRanger should have comment or be unexported (golint)
    • Line 1160: warning: exported function NewFloatRanger should have comment or be unexported (golint)
    • Line 1190: warning: exported function NewColorRanger should have comment or be unexported (golint)
    • go-gg/gg/layout/layout.go
    • Line 61: warning: exported method Leaf.SetLayout should have comment or be unexported (golint)
    • Line 65: warning: exported method Leaf.Layout should have comment or be unexported (golint)
    • go-gg/ggstat/bin.go
    • Line 18: warning: comment on exported type Bin should be of the form "Bin ..." (with optional leading article) (golint)
    • Line 74: warning: exported method Bin.F should have comment or be unexported (golint)
    • go-gg/gg/layout.go
    • Line 526: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 565: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-gg/ggstat/domain.go
    • Line 38: warning: exported method DomainFixed.FunctionDomain should have comment or be unexported (golint)
    • Line 68: warning: exported method DomainData.FunctionDomain should have comment or be unexported (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!


misspell98%

Misspell Finds commonly misspelled English words