Skip to content

Commit

Permalink
fix the lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Jan 30, 2025
1 parent 169d83c commit 3ed6fac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
run:
tests: false
skip-dirs:
- tests/e2e
- tests/simulation

govet:
# Enable analyzers by name (in addition to default).
# Run `go tool vet help` to see all analyzers.
Expand All @@ -24,7 +20,7 @@ linters:
# - depguard
- dogsled
- errcheck
- exportloopref
- copyloopvar
- goconst
- gocritic
- gofmt
Expand All @@ -49,6 +45,10 @@ linters:
- usestdlibvars

issues:
exclude-dirs:
- tests/e2e
- tests/simulation

exclude-rules:
- path: _test\.go
linters:
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ func (app *UmeeApp) storeUpgrade(planName string, ui upgradetypes.Plan, stores s

// registerUpgrade sets an upgrade handler which only runs module migrations
// and adds new storages storages
//
//nolint:unparam
func (app *UmeeApp) registerUpgrade(planName string, upgradeInfo upgradetypes.Plan, newStores []string,
deletedStores []string, renamedStores []storetypes.StoreRename) {
app.UpgradeKeeper.SetUpgradeHandler(planName, onlyModuleMigrations(app, planName))
Expand Down
8 changes: 0 additions & 8 deletions x/oracle/client/tests/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ func (s *IntegrationTestSuite) TestDelegateFeedConsent() {
}

for _, tc := range testCases {
tc := tc

s.Run(tc.name, func() {
clientCtx := val.ClientCtx

Expand Down Expand Up @@ -148,8 +146,6 @@ func (s *IntegrationTestSuite) TestQueryFeedDelegate() {
}

for _, tc := range testCases {
tc := tc

s.Run(tc.name, func() {
tc.args = append(tc.args, fmt.Sprintf("--%s=json", tmcli.OutputFlag))
out, err := clitestutil.ExecTestCLICmd(clientCtx, cli.QueryFeederDelegation(), tc.args)
Expand Down Expand Up @@ -219,8 +215,6 @@ func (s *IntegrationTestSuite) TestQueryExchangeRate() {
}

for _, tc := range testCases {
tc := tc

s.Run(tc.name, func() {
out, err := clitestutil.ExecTestCLICmd(clientCtx, cli.QueryExchangeRate(), tc.args)
if tc.expectErr {
Expand Down Expand Up @@ -272,8 +266,6 @@ func (s *IntegrationTestSuite) TestQueryExchangeRateWithTimestamp() {
}

for _, tc := range testCases {
tc := tc

s.Run(tc.name, func() {
out, err := clitestutil.ExecTestCLICmd(clientCtx, cli.QueryExchangeRatesWithTimestamp(), tc.args)
if tc.expectErr {
Expand Down

0 comments on commit 3ed6fac

Please sign in to comment.