Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
gopherjs-frappe-charts/bar_chart.go
- Line 8: warning: exported type BarChartArgs should have comment or be unexported (golint)
- Line 24: warning: exported function NewBarChart should have comment or be unexported (golint)
- Line 32: warning: exported method BarChartArgs.WithTitle should have comment or be unexported (golint)
- Line 37: warning: exported method BarChartArgs.WithHeight should have comment or be unexported (golint)
- Line 42: warning: exported method BarChartArgs.WithColors should have comment or be unexported (golint)
- Line 47: warning: exported method BarChartArgs.SetXAxisMode should have comment or be unexported (golint)
- Line 52: warning: exported method BarChartArgs.SetYAxisMode should have comment or be unexported (golint)
- Line 57: warning: exported method BarChartArgs.SetIsSeries should have comment or be unexported (golint)
- Line 62: warning: exported method BarChartArgs.SetIsNavigable should have comment or be unexported (golint)
- Line 67: warning: exported method BarChartArgs.WithFormatTooltipX should have comment or be unexported (golint)
- Line 72: warning: exported method BarChartArgs.WithFormatTooltipY should have comment or be unexported (golint)
- Line 77: warning: exported method BarChartArgs.SetBton should have comment or be unexported (golint)
- Line 81: warning: exported type BarChart should have comment or be unexported (golint)
- Line 85: warning: exported method BarChart.UpdateValues should have comment or be unexported (golint)
- Line 89: warning: exported method BarChart.AppendDataPoint should have comment or be unexported (golint)
- Line 93: warning: exported method BarChart.AddDataPoint should have comment or be unexported (golint)
- Line 97: warning: exported method BarChart.PopDataPoint should have comment or be unexported (golint)
- Line 101: warning: exported method BarChart.RemoveDataPoint should have comment or be unexported (golint)
- Line 105: warning: exported method BarChart.ShowSums should have comment or be unexported (golint)
- Line 109: warning: exported method BarChart.HideSums should have comment or be unexported (golint)
- Line 113: warning: exported method BarChart.ShowAverages should have comment or be unexported (golint)
- Line 117: warning: exported method BarChart.HideAverages should have comment or be unexported (golint)
- Line 121: warning: exported method BarChartArgs.Render should have comment or be unexported (golint)
- Line 131: warning: exported type DataSelectEvent should have comment or be unexported (golint)
- Line 140: warning: exported method BarChart.AddEventListener should have comment or be unexported (golint)
-
gopherjs-frappe-charts/heatmap.go
- Line 8: warning: exported type HeatmapArgs should have comment or be unexported (golint)
- Line 19: warning: exported function NewHeatmapChart should have comment or be unexported (golint)
- Line 31: warning: exported method HeatmapArgs.WithHeight should have comment or be unexported (golint)
- Line 36: warning: exported method HeatmapArgs.SetDiscreteDomain should have comment or be unexported (golint)
- Line 41: warning: exported method HeatmapArgs.WithLegendColors should have comment or be unexported (golint)
- Line 46: warning: exported method HeatmapArgs.Render should have comment or be unexported (golint)
-
gopherjs-frappe-charts/line_chart.go
- Line 27: warning: exported function NewLineChart should have comment or be unexported (golint)
- Line 35: warning: exported method LineChartArgs.WithTitle should have comment or be unexported (golint)
- Line 40: warning: exported method LineChartArgs.WithHeight should have comment or be unexported (golint)
- Line 45: warning: exported method LineChartArgs.WithColors should have comment or be unexported (golint)
- Line 50: warning: exported method LineChartArgs.SetXAxisMode should have comment or be unexported (golint)
- Line 55: warning: exported method LineChartArgs.SetYAxisMode should have comment or be unexported (golint)
- Line 84: warning: exported method LineChartArgs.SetBton should have comment or be unexported (golint)
- Line 88: warning: exported method LineChartArgs.WithFormatTooltipX should have comment or be unexported (golint)
- Line 93: warning: exported method LineChartArgs.WithFormatTooltipY should have comment or be unexported (golint)
- Line 98: warning: exported type LineChart should have comment or be unexported (golint)
-
gopherjs-frappe-charts/percentage_chart.go
- Line 19: warning: exported function NewPercentageChart should have comment or be unexported (golint)
- Line 27: warning: exported method PercentageChartArgs.WithTitle should have comment or be unexported (golint)
- Line 32: warning: exported method PercentageChartArgs.WithHeight should have comment or be unexported (golint)
- Line 37: warning: exported method PercentageChartArgs.WithColors should have comment or be unexported (golint)
-
gopherjs-frappe-charts/pie_chart.go
- Line 19: warning: exported function NewPieChart should have comment or be unexported (golint)
- Line 27: warning: exported method PieChartArgs.WithTitle should have comment or be unexported (golint)
- Line 32: warning: exported method PieChartArgs.WithHeight should have comment or be unexported (golint)
- Line 37: warning: exported method PieChartArgs.WithColors should have comment or be unexported (golint)
-
gopherjs-frappe-charts/scatter_chart.go
- Line 25: warning: exported function NewScatterChart should have comment or be unexported (golint)
- Line 33: warning: exported method ScatterChartArgs.WithTitle should have comment or be unexported (golint)
- Line 38: warning: exported method ScatterChartArgs.WithHeight should have comment or be unexported (golint)
- Line 43: warning: exported method ScatterChartArgs.WithColors should have comment or be unexported (golint)
- Line 48: warning: exported method ScatterChartArgs.SetXAxisMode should have comment or be unexported (golint)
- Line 53: warning: exported method ScatterChartArgs.SetYAxisMode should have comment or be unexported (golint)
- Line 64: warning: exported method ScatterChartArgs.WithFormatTooltipX should have comment or be unexported (golint)
- Line 69: warning: exported method ScatterChartArgs.WithFormatTooltipY should have comment or be unexported (golint)
- Line 74: warning: exported method ScatterChartArgs.SetBton should have comment or be unexported (golint)
- Line 78: warning: exported type ScatterChart should have comment or be unexported (golint)
- Line 82: warning: exported method ScatterChart.UpdateValues should have comment or be unexported (golint)
- Line 86: warning: exported method ScatterChart.AppendDataPoint should have comment or be unexported (golint)
- Line 90: warning: exported method ScatterChart.AddDataPoint should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!