Skip to content

Commit

Permalink
lint: exclude lll in two cases
Browse files Browse the repository at this point in the history
  • Loading branch information
janosmiko committed Sep 25, 2023
1 parent b46ec0e commit ee0f6f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/logic/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package logic

import (
"fmt"
"path/filepath"

"github.com/hashicorp/go-version"
log "github.com/sirupsen/logrus"
"path/filepath"

"github.com/rewardenv/reward/pkg/util"
)
Expand Down Expand Up @@ -260,6 +261,7 @@ func (c *bootstrapper) composerPreInstall() error {
log.Println("Setting default composer version to 1.x")

// Change default Composer Version
//nolint:lll
err := c.RunCmdEnvExec(fmt.Sprintf("%s alternatives %s --set composer %s/composer1", c.SudoCommand(), c.AlternativesArgs(), c.LocalBinPath()))
if err != nil {
return fmt.Errorf("cannot change default composer version: %w", err)
Expand All @@ -268,6 +270,7 @@ func (c *bootstrapper) composerPreInstall() error {
log.Println("Setting default composer version to 2.x")

// Change default Composer Version
//nolint:lll
err := c.RunCmdEnvExec(fmt.Sprintf("%s alternatives %s --set composer %s/composer2", c.SudoCommand(), c.AlternativesArgs(), c.LocalBinPath()))
if err != nil {
return fmt.Errorf("cannot change default composer version: %w", err)
Expand Down

0 comments on commit ee0f6f1

Please sign in to comment.