Preparing report...

Report for github.com/as/frame

A+    Excellent!    Found 21 issues across 47 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.

    • frame/framefix/typecheck.go
    • Line 229: warning: cyclomatic complexity 103 of function typecheck1() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 20 of function typecheck() is high (> 15) (gocyclo)
    • frame/delete.go
    • Line 11: warning: cyclomatic complexity 19 of function (*Frame).Delete() is high (> 15) (gocyclo)
    • frame/draw.go
    • Line 85: warning: cyclomatic complexity 16 of function (*Frame).drawsel() is high (> 15) (gocyclo)
    • frame/framefix/fix.go
    • Line 58: warning: cyclomatic complexity 90 of function walkBeforeAfter() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 22 of function renameTop() is high (> 15) (gocyclo)

golint72%

Golint is a linter for Go source code.

    • frame/frame.go
    • Line 13: warning: exported const FrElastic should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var ForceElastic should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrBadDst should have comment or be unexported (golint)
    • Line 57: warning: exported function New should have comment or be unexported (golint)
    • Line 85: warning: exported method Frame.Config should have comment or be unexported (golint)
    • Line 101: warning: comment on exported method Frame.SetFlags should be of the form "SetFlags ..." (golint)
    • Line 124: warning: exported method Frame.RGBA should have comment or be unexported (golint)
    • Line 128: warning: exported method Frame.Size should have comment or be unexported (golint)
    • Line 142: warning: exported method Frame.SetFont should have comment or be unexported (golint)
    • Line 148: warning: exported method Frame.SetOp should have comment or be unexported (golint)
    • Line 177: warning: comment on exported method Frame.MaxLine should be of the form "MaxLine ..." (golint)
    • frame/tick.go
    • Line 9: warning: exported const TickOff should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported method Frame.Untick should have comment or be unexported (golint)
    • Line 18: warning: exported method Frame.Tick should have comment or be unexported (golint)
    • Line 24: warning: exported method Frame.SetTick should have comment or be unexported (golint)
    • frame/box/box.go
    • Line 3: warning: exported const SLOP should have comment or be unexported (golint)
    • Line 5: warning: exported type Box should have comment or be unexported (golint)
    • Line 12: warning: exported method Box.Break should have comment or be unexported (golint)
    • Line 20: warning: exported method Box.Len should have comment or be unexported (golint)
    • Line 27: warning: exported method Box.Bytes should have comment or be unexported (golint)
    • frame/box/elastic.go
    • Line 3: warning: exported method Run.Stretch2 should have comment or be unexported (golint)
    • Line 7: warning: comment on exported method Run.Stretch should be of the form "Stretch ..." (golint)
    • Line 86: warning: exported method Run.Findcol should have comment or be unexported (golint)
    • Line 108: warning: exported method Run.Colof should have comment or be unexported (golint)
    • Line 243: warning: exported method Run.StartLine should have comment or be unexported (golint)
    • Line 253: warning: exported method Run.EndLine should have comment or be unexported (golint)
    • Line 264: warning: exported method Run.NextLine should have comment or be unexported (golint)
    • Line 272: warning: exported method Run.PrevLine should have comment or be unexported (golint)
    • frame/box/scan.go
    • Line 77: warning: exported method Run.Runescan should have comment or be unexported (golint)
    • Line 80: warning: exported method Run.Boxscan should have comment or be unexported (golint)
    • frame/color.go
    • Line 8: warning: comment on exported var Black should be of the form "Black ..." (golint)
    • Line 10: warning: exported var White should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var Gray should be of the form "Gray ..." (golint)
    • Line 25: warning: exported var Mono should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type Palette should be of the form "Palette ..." (with optional leading article) (golint)
    • frame/delete.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • frame/drawer.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 26: warning: exported function NewDefaultDrawer should have comment or be unexported (golint)
    • frame/box/b.go
    • Line 3: warning: exported type B should have comment or be unexported (golint)
    • Line 54: warning: exported function PrevLine should have comment or be unexported (golint)
    • frame/box/run.go
    • Line 12: warning: exported function NewRun should have comment or be unexported (golint)
    • Line 37: warning: exported method Run.Combine should have comment or be unexported (golint)
    • Line 95: warning: exported method Run.DumpBoxes should have comment or be unexported (golint)
    • Line 132: warning: exported method Run.Truncate should have comment or be unexported (golint)
    • Line 207: warning: receiver name b should be consistent with previous receiver name f for Run (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words