Preparing report...

Report for github.com/frankbraun/asciiart

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


gocyclo76%

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.

    • asciiart/poly.go
    • Line 298: warning: cyclomatic complexity 62 of function procEdge() is high (> 15) (gocyclo)
    • Line 502: warning: cyclomatic complexity 30 of function outgoingEdges() is high (> 15) (gocyclo)
    • Line 194: warning: cyclomatic complexity 19 of function followLine() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 17 of function (*Parser).parsePolygon() is high (> 15) (gocyclo)
    • asciiart/line.go
    • Line 38: warning: cyclomatic complexity 33 of function (*Parser).parseLine() is high (> 15) (gocyclo)
    • asciiart/rect.go
    • Line 17: warning: cyclomatic complexity 26 of function (*Parser).parseRectangle() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • asciiart/svg/path/grammar.go
    • Line 1501: warning: don't use underscores in Go names; method onsvg_path1 should be onsvgPath1 (golint)
    • Line 1518: warning: don't use underscores in Go names; method callonsvg_path1 should be callonsvgPath1 (golint)
    • Line 1524: warning: don't use underscores in Go names; method onmoveTo_drawTo_commandGroups1 should be onmoveToDrawToCommandGroups1 (golint)
    • Line 1528: warning: don't use underscores in Go names; method callonmoveTo_drawTo_commandGroups1 should be callonmoveToDrawToCommandGroups1 (golint)
    • Line 1534: warning: don't use underscores in Go names; method onmoveTo_drawTo_commandGroup1 should be onmoveToDrawToCommandGroup1 (golint)
    • Line 1538: warning: don't use underscores in Go names; method callonmoveTo_drawTo_commandGroup1 should be callonmoveToDrawToCommandGroup1 (golint)
    • Line 1595: warning: don't use underscores in Go names; method onlineto_argument_sequence1 should be onlinetoArgumentSequence1 (golint)
    • Line 1599: warning: don't use underscores in Go names; method callonlineto_argument_sequence1 should be callonlinetoArgumentSequence1 (golint)
    • Line 1605: warning: don't use underscores in Go names; method onhorizontal_lineto1 should be onhorizontalLineto1 (golint)
    • Line 1613: warning: don't use underscores in Go names; method callonhorizontal_lineto1 should be callonhorizontalLineto1 (golint)
    • Line 1619: warning: don't use underscores in Go names; method oncoordinate_sequence1 should be oncoordinateSequence1 (golint)
    • Line 1623: warning: don't use underscores in Go names; method calloncoordinate_sequence1 should be calloncoordinateSequence1 (golint)
    • Line 1629: warning: don't use underscores in Go names; method onvertical_lineto1 should be onverticalLineto1 (golint)
    • Line 1637: warning: don't use underscores in Go names; method callonvertical_lineto1 should be callonverticalLineto1 (golint)
    • Line 1653: warning: don't use underscores in Go names; method oncurveto_argument_sequence1 should be oncurvetoArgumentSequence1 (golint)
    • Line 1657: warning: don't use underscores in Go names; method calloncurveto_argument_sequence1 should be calloncurvetoArgumentSequence1 (golint)
    • Line 1663: warning: don't use underscores in Go names; method oncurveto_argument1 should be oncurvetoArgument1 (golint)
    • Line 1678: warning: don't use underscores in Go names; method calloncurveto_argument1 should be calloncurvetoArgument1 (golint)
    • Line 1684: warning: don't use underscores in Go names; method onsmooth_curveto1 should be onsmoothCurveto1 (golint)
    • Line 1688: warning: don't use underscores in Go names; method callonsmooth_curveto1 should be callonsmoothCurveto1 (golint)
    • Line 1694: warning: don't use underscores in Go names; method onsmooth_curveto_argument_sequence1 should be onsmoothCurvetoArgumentSequence1 (golint)
    • Line 1698: warning: don't use underscores in Go names; method callonsmooth_curveto_argument_sequence1 should be callonsmoothCurvetoArgumentSequence1 (golint)
    • Line 1704: warning: don't use underscores in Go names; method onsmooth_curveto_argument1 should be onsmoothCurvetoArgument1 (golint)
    • Line 1716: warning: don't use underscores in Go names; method callonsmooth_curveto_argument1 should be callonsmoothCurvetoArgument1 (golint)
    • Line 1722: warning: don't use underscores in Go names; method onquadratic_bezier_curveto1 should be onquadraticBezierCurveto1 (golint)
    • Line 1726: warning: don't use underscores in Go names; method callonquadratic_bezier_curveto1 should be callonquadraticBezierCurveto1 (golint)
    • Line 1732: warning: don't use underscores in Go names; method onquadratic_bezier_curveto_argument_sequence1 should be onquadraticBezierCurvetoArgumentSequence1 (golint)
    • Line 1736: warning: don't use underscores in Go names; method callonquadratic_bezier_curveto_argument_sequence1 should be callonquadraticBezierCurvetoArgumentSequence1 (golint)
    • Line 1742: warning: don't use underscores in Go names; method onquadratic_bezier_curveto_argument1 should be onquadraticBezierCurvetoArgument1 (golint)
    • Line 1754: warning: don't use underscores in Go names; method callonquadratic_bezier_curveto_argument1 should be callonquadraticBezierCurvetoArgument1 (golint)
    • Line 1760: warning: don't use underscores in Go names; method onsmooth_quadratic_bezier_curveto1 should be onsmoothQuadraticBezierCurveto1 (golint)
    • Line 1764: warning: don't use underscores in Go names; method callonsmooth_quadratic_bezier_curveto1 should be callonsmoothQuadraticBezierCurveto1 (golint)
    • Line 1770: warning: don't use underscores in Go names; method onsmooth_quadratic_bezier_curveto_argument_sequence1 should be onsmoothQuadraticBezierCurvetoArgumentSequence1 (golint)
    • Line 1774: warning: don't use underscores in Go names; method callonsmooth_quadratic_bezier_curveto_argument_sequence1 should be callonsmoothQuadraticBezierCurvetoArgumentSequence1 (golint)
    • Line 1780: warning: don't use underscores in Go names; method onelliptical_arc1 should be onellipticalArc1 (golint)
    • Line 1784: warning: don't use underscores in Go names; method callonelliptical_arc1 should be callonellipticalArc1 (golint)
    • Line 1790: warning: don't use underscores in Go names; method onelliptical_arc_argument_sequence1 should be onellipticalArcArgumentSequence1 (golint)
    • Line 1794: warning: don't use underscores in Go names; method callonelliptical_arc_argument_sequence1 should be callonellipticalArcArgumentSequence1 (golint)
    • Line 1800: warning: don't use underscores in Go names; method onelliptical_arc_argument1 should be onellipticalArcArgument1 (golint)
    • Line 1814: warning: don't use underscores in Go names; method callonelliptical_arc_argument1 should be callonellipticalArcArgument1 (golint)
    • Line 1820: warning: don't use underscores in Go names; method oncoordinate_pair1 should be oncoordinatePair1 (golint)
    • Line 1828: warning: don't use underscores in Go names; method calloncoordinate_pair1 should be calloncoordinatePair1 (golint)
    • Line 1834: warning: don't use underscores in Go names; method onnonnegative_number3 should be onnonnegativeNumber3 (golint)
    • Line 1838: warning: don't use underscores in Go names; method callonnonnegative_number3 should be callonnonnegativeNumber3 (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!