Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lint in CI #185

Closed
wants to merge 0 commits into from
Closed

Fix Lint in CI #185

wants to merge 0 commits into from

Conversation

jim380
Copy link
Contributor

@jim380 jim380 commented Jan 26, 2024

This builds on top of #178

@jim380 jim380 marked this pull request as draft January 26, 2024 00:57
@jim380 jim380 marked this pull request as ready for review January 26, 2024 00:57
@jim380 jim380 requested a review from hacheigriega January 26, 2024 01:34
@jim380 jim380 changed the title Jay/fix lint ci Fix Lint in CI Jan 26, 2024
app/app.go Outdated
@@ -30,12 +28,15 @@ import (
"cosmossdk.io/x/upgrade"
upgradekeeper "cosmossdk.io/x/upgrade/keeper"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/spf13/cast"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems out of place

app/app.go Outdated
Comment on lines 33 to 34
abci "github.com/cometbft/cometbft/abci/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't cometbft go before cosmos or cosmossdk.io?

app/export.go Outdated
app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
err := app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
if err != nil {
log.Fatal(err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not be consistent and panic here?

@@ -10,13 +10,13 @@ import (
"testing"
"time"

"cosmossdk.io/log"
storetypes "cosmossdk.io/store/types"
evidencetypes "cosmossdk.io/x/evidence/types"
"github.com/stretchr/testify/require"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems out of place

Comment on lines 17 to 21
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"google.golang.org/grpc"
"google.golang.org/protobuf/reflect/protoregistry"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should go after standard packages but before cometbft/cosmos

address "cosmossdk.io/core/address"
"cosmossdk.io/errors"
"github.com/spf13/cobra"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"github.com/spf13/viper"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@hacheigriega
Copy link
Member

The import order of standard -> default -> cometbft -> cosmos -> seed-chain as defined in .golangci.yml is not being followed strangely. We can address that in another PR if you prefer.

@hacheigriega hacheigriega self-requested a review January 26, 2024 19:05
@jim380 jim380 closed this Jan 26, 2024
@hacheigriega hacheigriega deleted the jay/fix-lint-ci branch May 2, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants