Preparing report...

Report for github.com/chenjiandongx/go-echarts

A+    Excellent!    Found 29 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!


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!


golint38%

Golint is a linter for Go source code.

    • go-echarts/render/engine.go
    • Line 13: warning: comment on exported type Renderer should be of the form "Renderer ..." (with optional leading article) (golint)
    • Line 21: warning: exported const ModChart should have comment (or a comment on this block) or be unexported (golint)
    • Line 87: warning: comment on exported function MustTemplate should be of the form "MustTemplate ..." (golint)
    • go-echarts/charts/series.go
    • Line 5: warning: exported type SingleSeries should have comment or be unexported (golint)
    • Line 97: warning: exported type SeriesOpts should have comment or be unexported (golint)
    • Line 99: warning: comment on exported function WithLabelOpts should be of the form "WithLabelOpts ..." (golint)
    • Line 106: warning: comment on exported function WithEmphasisOpts should be of the form "WithEmphasisOpts ..." (golint)
    • Line 113: warning: comment on exported function WithAreaStyleOpts should be of the form "WithAreaStyleOpts ..." (golint)
    • Line 120: warning: comment on exported function WithItemStyleOpts should be of the form "WithItemStyleOpts ..." (golint)
    • Line 127: warning: comment on exported function WithRippleEffectOpts should be of the form "WithRippleEffectOpts ..." (golint)
    • Line 134: warning: comment on exported function WithLineStyleOpts should be of the form "WithLineStyleOpts ..." (golint)
    • Line 143: warning: comment on exported function WithBarChartOpts should be of the form "WithBarChartOpts ..." (golint)
    • Line 158: warning: exported function WithSunburstOpts should have comment or be unexported (golint)
    • Line 175: warning: comment on exported function WithGraphChartOpts should be of the form "WithGraphChartOpts ..." (golint)
    • Line 186: warning: comment on exported function WithHeatMapChartOpts should be of the form "WithHeatMapChartOpts ..." (golint)
    • Line 194: warning: comment on exported function WithLineChartOpts should be of the form "WithLineChartOpts ..." (golint)
    • Line 207: warning: comment on exported function WithPieChartOpts should be of the form "WithPieChartOpts ..." (golint)
    • Line 216: warning: comment on exported function WithScatterChartOpts should be of the form "WithScatterChartOpts ..." (golint)
    • Line 224: warning: comment on exported function WithLiquidChartOpts should be of the form "WithLiquidChartOpts ..." (golint)
    • Line 233: warning: comment on exported function WithBar3DChartOpts should be of the form "WithBar3DChartOpts ..." (golint)
    • Line 240: warning: comment on exported function WithTreeOpts should be of the form "WithTreeOpts ..." (golint)
    • Line 257: warning: comment on exported function WithWorldCloudChartOpts should be of the form "WithWorldCloudChartOpts ..." (golint)
    • Line 266: warning: comment on exported function WithMarkLineNameTypeItemOpts should be of the form "WithMarkLineNameTypeItemOpts ..." (golint)
    • Line 278: warning: comment on exported function WithMarkLineNameXAxisItemOpts should be of the form "WithMarkLineNameXAxisItemOpts ..." (golint)
    • Line 290: warning: comment on exported function WithMarkLineNameYAxisItemOpts should be of the form "WithMarkLineNameYAxisItemOpts ..." (golint)
    • Line 302: warning: comment on exported function WithMarkPointNameTypeItemOpts should be of the form "WithMarkPointNameTypeItemOpts ..." (golint)
    • Line 314: warning: comment on exported function WithMarkPointStyleOpts should be of the form "WithMarkPointStyleOpts ..." (golint)
    • Line 325: warning: comment on exported function WithMarkPointNameCoordItemOpts should be of the form "WithMarkPointNameCoordItemOpts ..." (golint)
    • go-echarts/charts/map.go
    • Line 28: warning: comment on exported method Map.RegisterMapType should be of the form "RegisterMapType ..." (golint)
    • Line 48: warning: comment on exported method Map.Validate should be of the form "Validate ..." (golint)
    • go-echarts/opts/charts.go
    • Line 3: warning: comment on exported type BarChart should be of the form "BarChart ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type SunburstChart should be of the form "SunburstChart ..." (with optional leading article) (golint)
    • Line 67: warning: comment on exported type BarData should be of the form "BarData ..." (with optional leading article) (golint)
    • Line 101: warning: comment on exported type BoxPlotData should be of the form "BoxPlotData ..." (with optional leading article) (golint)
    • Line 123: warning: comment on exported type EffectScatterData should be of the form "EffectScatterData ..." (with optional leading article) (golint)
    • Line 133: warning: comment on exported type FunnelData should be of the form "FunnelData ..." (with optional leading article) (golint)
    • Line 143: warning: comment on exported type GeoData should be of the form "GeoData ..." (with optional leading article) (golint)
    • Line 152: warning: comment on exported type GaugeData should be of the form "GaugeData ..." (with optional leading article) (golint)
    • Line 260: warning: comment on exported type HeatMapData should be of the form "HeatMapData ..." (with optional leading article) (golint)
    • Line 270: warning: comment on exported type KlineData should be of the form "KlineData ..." (with optional leading article) (golint)
    • Line 306: warning: comment on exported type LineData should be of the form "LineData ..." (with optional leading article) (golint)
    • Line 331: warning: comment on exported type LiquidChart should be of the form "LiquidChart ..." (with optional leading article) (golint)
    • Line 346: warning: comment on exported type LiquidData should be of the form "LiquidData ..." (with optional leading article) (golint)
    • Line 356: warning: comment on exported type MapData should be of the form "MapData ..." (with optional leading article) (golint)
    • Line 366: warning: comment on exported type ParallelData should be of the form "ParallelData ..." (with optional leading article) (golint)
    • Line 404: warning: comment on exported type PieData should be of the form "PieData ..." (with optional leading article) (golint)
    • Line 426: warning: comment on exported type RadarData should be of the form "RadarData ..." (with optional leading article) (golint)
    • Line 475: warning: comment on exported type ScatterData should be of the form "ScatterData ..." (with optional leading article) (golint)
    • Line 500: warning: comment on exported type ThemeRiverData should be of the form "ThemeRiverData ..." (with optional leading article) (golint)
    • Line 531: warning: comment on exported type WordCloudData should be of the form "WordCloudData ..." (with optional leading article) (golint)
    • Line 540: warning: exported type Chart3DData should have comment or be unexported (golint)
    • Line 555: warning: exported type TreeChart should have comment or be unexported (golint)
    • Line 596: warning: exported type TreeData should have comment or be unexported (golint)
    • go-echarts/charts/chart3d.go
    • Line 13: warning: comment on exported function WithXAxis3DOpts should be of the form "WithXAxis3DOpts ..." (golint)
    • Line 20: warning: comment on exported function WithYAxis3DOpts should be of the form "WithYAxis3DOpts ..." (golint)
    • Line 27: warning: comment on exported function WithZAxis3DOpts should be of the form "WithZAxis3DOpts ..." (golint)
    • Line 34: warning: comment on exported function WithGrid3DOpts should be of the form "WithGrid3DOpts ..." (golint)
    • Line 63: warning: comment on exported method Chart3D.Validate should be of the form "Validate ..." (golint)
    • go-echarts/components/page.go
    • Line 8: warning: exported type Layout should have comment or be unexported (golint)
    • Line 11: warning: exported const PageNoneLayout should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported type Charter should be of the form "Charter ..." (with optional leading article) (golint)
    • Line 42: warning: exported method Page.SetLayout should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Page.Validate should be of the form "Validate ..." (golint)
    • go-echarts/opts/global.go
    • Line 435: warning: comment on exported type ToolBoxFeatureDataZoom should be of the form "ToolBoxFeatureDataZoom ..." (with optional leading article) (golint)
    • Line 447: warning: comment on exported type ToolBoxFeatureDataView should be of the form "ToolBoxFeatureDataView ..." (with optional leading article) (golint)
    • Line 464: warning: comment on exported type ToolBoxFeatureRestore should be of the form "ToolBoxFeatureRestore ..." (with optional leading article) (golint)
    • Line 967: warning: exported type PolarAxisBase should have comment or be unexported (golint)
    • Line 985: warning: exported type AngleAxis should have comment or be unexported (golint)
    • Line 990: warning: exported type RadiusAxis should have comment or be unexported (golint)
    • Line 1004: warning: exported type JSFunctions should have comment or be unexported (golint)
    • Line 1025: warning: exported type Colors should have comment or be unexported (golint)
    • Line 1027: warning: comment on exported type Assets should be of the form "Assets ..." (with optional leading article) (golint)
    • go-echarts/opts/series.go
    • Line 76: warning: comment on exported type ItemStyle should be of the form "ItemStyle ..." (with optional leading article) (golint)
    • Line 130: warning: comment on exported type MarkLineNameYAxisItem should be of the form "MarkLineNameYAxisItem ..." (with optional leading article) (golint)
    • Line 145: warning: comment on exported type MarkLineNameXAxisItem should be of the form "MarkLineNameXAxisItem ..." (with optional leading article) (golint)
    • Line 273: warning: comment on exported type GraphForce should be of the form "GraphForce ..." (with optional leading article) (golint)
    • Line 303: warning: comment on exported type TreeLeaves should be of the form "TreeLeaves ..." (with optional leading article) (golint)
    • go-echarts/charts/base.go
    • Line 165: warning: comment on exported function WithAngleAxisOps should be of the form "WithAngleAxisOps ..." (golint)
    • Line 172: warning: comment on exported function WithRadiusAxisOps should be of the form "WithRadiusAxisOps ..." (golint)
    • Line 186: warning: comment on exported function WithTitleOpts should be of the form "WithTitleOpts ..." (golint)
    • Line 193: warning: comment on exported function WithToolboxOpts should be of the form "WithToolboxOpts ..." (golint)
    • Line 200: warning: comment on exported function WithSingleAxisOpts should be of the form "WithSingleAxisOpts ..." (golint)
    • Line 207: warning: comment on exported function WithTooltipOpts should be of the form "WithTooltipOpts ..." (golint)
    • Line 214: warning: comment on exported function WithLegendOpts should be of the form "WithLegendOpts ..." (golint)
    • Line 221: warning: comment on exported function WithInitializationOpts should be of the form "WithInitializationOpts ..." (golint)
    • Line 234: warning: comment on exported function WithDataZoomOpts should be of the form "WithDataZoomOpts ..." (golint)
    • Line 241: warning: comment on exported function WithVisualMapOpts should be of the form "WithVisualMapOpts ..." (golint)
    • Line 248: warning: comment on exported function WithRadarComponentOpts should be of the form "WithRadarComponentOpts ..." (golint)
    • Line 255: warning: comment on exported function WithGeoComponentOpts should be of the form "WithGeoComponentOpts ..." (golint)
    • Line 264: warning: comment on exported function WithParallelComponentOpts should be of the form "WithParallelComponentOpts ..." (golint)
    • Line 271: warning: comment on exported function WithParallelAxisList should be of the form "WithParallelAxisList ..." (golint)
    • Line 278: warning: comment on exported function WithColorsOpts should be of the form "WithColorsOpts ..." (golint)
    • go-echarts/charts/rectangle.go
    • Line 7: warning: exported type Overlaper should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function WithXAxisOpts should be of the form "WithXAxisOpts ..." (golint)
    • Line 44: warning: comment on exported function WithYAxisOpts should be of the form "WithYAxisOpts ..." (golint)
    • Line 91: warning: comment on exported method RectChart.Validate should be of the form "Validate ..." (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!


misspell95%

Misspell Finds commonly misspelled English words