diff --git a/cmd/internal/workspace.go b/cmd/internal/workspace.go index 5bf20c3..8c28006 100644 --- a/cmd/internal/workspace.go +++ b/cmd/internal/workspace.go @@ -50,6 +50,7 @@ func registerCreateWorkspaceCmd(ctx *context.Context, wsCmd *cobra.Command) { wsCmd.AddCommand(createCmd) } +//nolint:gocognit func createWorkspaceFunc(ctx *context.Context, cmd *cobra.Command, args []string) { logger := ctx.Logger name := args[0] diff --git a/internal/io/library/view.go b/internal/io/library/view.go index 1d27f1e..ed900dc 100644 --- a/internal/io/library/view.go +++ b/internal/io/library/view.go @@ -41,7 +41,7 @@ var ( func (l *Library) View() string { l.paneZeroViewport.Style = paneStyle(0, l.theme, l.splitView) l.paneZeroViewport.SetContent(l.paneZeroContent()) - l.paneZeroViewport.SetYOffset(int(l.currentWorkspace + l.currentNamespace)) + l.paneZeroViewport.SetYOffset(int(l.currentWorkspace + l.currentNamespace)) //nolint:gosec l.paneOneViewport.Style = paneStyle(1, l.theme, l.splitView) l.paneOneViewport.SetContent(l.paneOneContent())