From e0e26bbad13b08ad8aa297edcb1e7f65e45c56a7 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Fri, 22 Sep 2023 13:59:52 +0200 Subject: [PATCH] fix remaining (fixable) lints --- EventHandler.go | 2 +- MasterWindow.go | 2 +- Plot.go | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/EventHandler.go b/EventHandler.go index 2524c8bf..5327f99a 100644 --- a/EventHandler.go +++ b/EventHandler.go @@ -116,7 +116,7 @@ func (eh *EventHandler) OnMouseReleased(mouseButton MouseButton, callback func() // Build implements Widget interface // -// nolint:,gocyclo // will fix later +//nolint:gocyclo // will fix later func (eh *EventHandler) Build() { isActive := IsItemActive() diff --git a/MasterWindow.go b/MasterWindow.go index b5658273..08f6831b 100644 --- a/MasterWindow.go +++ b/MasterWindow.go @@ -208,7 +208,7 @@ func (w *MasterWindow) afterRender() { func (w *MasterWindow) beforeDestroy() { imgui.PlotDestroyContext() - //imgui.ImNodesDestroyContext() // TODO: after adding ImNodes (https://github.com/AllenDang/cimgui-go/issues/137) + // imgui.ImNodesDestroyContext() // TODO: after adding ImNodes (https://github.com/AllenDang/cimgui-go/issues/137) } func (w *MasterWindow) render() { diff --git a/Plot.go b/Plot.go index e64cc6d4..4f73f563 100644 --- a/Plot.go +++ b/Plot.go @@ -195,7 +195,7 @@ func (p *PlotCanvasWidget) Build() { imgui.AxisX1, p.xTicksValue[0], p.xTicksValue[1], // <- TODO: why is it so strangely saved? - -1, // TODO + -1, // TODO: implement p.xTicksLabel, p.xTicksShowDefault, ) @@ -206,7 +206,7 @@ func (p *PlotCanvasWidget) Build() { imgui.AxisY1, p.xTicksValue[0], p.xTicksValue[1], // <- TODO: why is it so strangely saved? - -1, // TODO + -1, // TODO: implement p.xTicksLabel, p.xTicksShowDefault, ) @@ -292,7 +292,7 @@ func (p *BarPlot) Plot() { p.shift, 0, // TODO: implement int32(p.offset), - 0, //TODO: implement + 0, // TODO: implement ) } @@ -400,7 +400,7 @@ func (p *LinePlot) Plot() { // TODO: no idea what should it be... // imgui.PlotDragLineX(Context.FontAtlas.RegisterString(p.title), p.values, p.xScale, p.x0, p.offset) - //imgui.PlotDragLineX( + // imgui.PlotDragLineX( // Context.FontAtlas.RegisterString(p.title), // p.values, // p.xScale, @@ -443,7 +443,7 @@ func (p *LineXYPlot) Offset(offset int) *LineXYPlot { func (p *LineXYPlot) Plot() { // TODO: migrate this // imgui.ImPlotSetPlotYAxis(imgui.ImPlotYAxis(p.yAxis)) - //imgui.ImPlotLineXY(Context.FontAtlas.RegisterString(p.title), p.xs, p.ys, p.offset) + // imgui.ImPlotLineXY(Context.FontAtlas.RegisterString(p.title), p.xs, p.ys, p.offset) } // PieChartPlot represents a pie chart.