Skip to content

Commit

Permalink
chore: make lint-fix (#4400)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Nov 8, 2024
1 parent 901f402 commit 7a1ff9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ignite/cmd/bubblemodel/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (m MultiNode) View() string {
grayStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // gray
purpleStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("5")) // purple
statusBarStyle := lipgloss.NewStyle().Background(lipgloss.Color("0")) // Status bar style
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) //blue
blueStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("45")).Background(lipgloss.Color("0")) // blue

statusBar := blueStyle.Render("Press q to quit | Press 1-4 to ") + statusBarStyle.Render(runningStyle.Render("start")) + blueStyle.Render("/") + statusBarStyle.Render(stoppedStyle.Render("stop")) + blueStyle.Render(" corresponding node")
output := statusBar + "\n\n"
Expand Down
3 changes: 2 additions & 1 deletion ignite/cmd/testnet_multi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"time"

tea "github.com/charmbracelet/bubbletea"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"

sdk "github.com/cosmos/cosmos-sdk/types"

cmdmodel "github.com/ignite/cli/v29/ignite/cmd/bubblemodel"
igcfg "github.com/ignite/cli/v29/ignite/config"
v1 "github.com/ignite/cli/v29/ignite/config/chain/v1"
Expand Down
12 changes: 6 additions & 6 deletions ignite/pkg/chaincmd/in-place-testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ func (c ChainCmd) TestnetInPlaceCommand(newChainID, newOperatorAddress string, o
return c.daemonCommand(command)
}

// Options for testnet multi node
// Options for testnet multi node.
type MultiNodeOption func([]string) []string

// MultiNodeWithChainID returns a MultiNodeOption that appends the chainID option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithChainID(chainID string) MultiNodeOption {
return func(s []string) []string {
if len(chainID) > 0 {
Expand All @@ -61,7 +61,7 @@ func MultiNodeWithChainID(chainID string) MultiNodeOption {
}

// MultiNodeWithDirOutput returns a MultiNodeOption that appends the output directory option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
return func(s []string) []string {
if len(dirOutput) > 0 {
Expand All @@ -72,7 +72,7 @@ func MultiNodeWithDirOutput(dirOutput string) MultiNodeOption {
}

// MultiNodeWithNumValidator returns a MultiNodeOption that appends the number of validators option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
return func(s []string) []string {
if len(numVal) > 0 {
Expand All @@ -83,7 +83,7 @@ func MultiNodeWithNumValidator(numVal string) MultiNodeOption {
}

// MultiNodeWithValidatorsStakeAmount returns a MultiNodeOption that appends the stake amounts option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
return func(s []string) []string {
if len(satkeAmounts) > 0 {
Expand All @@ -94,7 +94,7 @@ func MultiNodeWithValidatorsStakeAmount(satkeAmounts string) MultiNodeOption {
}

// MultiNodeDirPrefix returns a MultiNodeOption that appends the node directory prefix option
// to the provided slice of strings
// to the provided slice of strings.
func MultiNodeDirPrefix(nodeDirPrefix string) MultiNodeOption {
return func(s []string) []string {
if len(nodeDirPrefix) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion ignite/pkg/chaincmd/runner/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (r Runner) InPlace(ctx context.Context, newChainID, newOperatorAddress stri
)
}

// Initialize config directories & files for a multi-validator testnet locally
// Initialize config directories & files for a multi-validator testnet locally.
func (r Runner) MultiNode(ctx context.Context, options ...chaincmd.MultiNodeOption) error {
runOptions := runOptions{
stdout: os.Stdout,
Expand Down
2 changes: 1 addition & 1 deletion ignite/pkg/markdownviewer/markdownviewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func config(path string) (ui.Config, error) {
if err != nil {
return ui.Config{}, err
}
//nolint: gosec

width = uint(w)
if width > 120 {
width = 120
Expand Down

0 comments on commit 7a1ff9e

Please sign in to comment.