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

Bump mvdan.cc/gofumpt from 0.6.0 to 0.7.0 #929

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/comdex-official/comdex

go 1.21.7
toolchain go1.22.5

require (
cosmossdk.io/api v0.3.1
@@ -39,7 +40,7 @@ require (
github.com/rakyll/statik v0.1.7
github.com/spf13/pflag v1.0.5
gopkg.in/yaml.v2 v2.4.0
mvdan.cc/gofumpt v0.6.0
mvdan.cc/gofumpt v0.7.0
)

require (
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1470,6 +1470,8 @@ github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
github.com/go-playground/validator/v10 v10.11.2 h1:q3SHpufmypg+erIExEKUmsgmhDTyhcJ38oeKGACXohU=
github.com/go-playground/validator/v10 v10.11.2/go.mod h1:NieE624vt4SCTJtD87arVLvdmjPAeV8BQlHtMnw9D7s=
github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI=
github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow=
github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
@@ -4429,8 +4431,8 @@ modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs
modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
mvdan.cc/gofumpt v0.3.1/go.mod h1:w3ymliuxvzVx8DAutBnVyDqYb1Niy/yCJt/lk821YCE=
mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ=
mvdan.cc/gofumpt v0.6.0 h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo=
mvdan.cc/gofumpt v0.6.0/go.mod h1:4L0wf+kgIPZtcCWXynNS2e6bhmj73umwnuXSZarixzA=
mvdan.cc/gofumpt v0.7.0 h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU=
mvdan.cc/gofumpt v0.7.0/go.mod h1:txVFJy/Sc/mvaycET54pV8SW8gWxTlUuGHVEcncmNUo=
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I=
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo=

Unchanged files with check annotations Beta

icqparams := icqtypes.DefaultParams()
icqparams.AllowQueries = append(icqparams.AllowQueries, "/cosmwasm.wasm.v1.Query/SmartContractState")
icqkeeper.SetParams(ctx, icqparams)

Check failure on line 48 in app/upgrades/mainnet/v12/upgrades.go

GitHub Actions / lint

Error return value of `icqkeeper.SetParams` is not checked (errcheck)
vm, err := mm.RunMigrations(ctx, configurator, fromVM)
if err != nil {
// icq params set
icqparams := icqtypes.DefaultParams()
icqparams.AllowQueries = append(icqparams.AllowQueries, "/cosmwasm.wasm.v1.Query/SmartContractState")
icqkeeper.SetParams(ctx, icqparams)

Check failure on line 78 in app/upgrades/mainnet/v13/upgrades.go

GitHub Actions / lint

Error return value of `icqkeeper.SetParams` is not checked (errcheck)
// Run migrations
logger.Info(fmt.Sprintf("pre migrate version map: %v", fromVM))
// update wasm to permissionless
wasmParams := wasmKeeper.GetParams(ctx)
wasmParams.CodeUploadAccess = wasmtypes.AllowEverybody
wasmKeeper.SetParams(ctx, wasmParams)

Check failure on line 114 in app/upgrades/testnet/v13/upgrades.go

GitHub Actions / lint

Error return value of `wasmKeeper.SetParams` is not checked (errcheck)
logger.Info(fmt.Sprintf("updated wasm params to %v", wasmParams))
// update discard BH of oracle
// wasm
wasmParams := wasmKeeper.GetParams(ctx)
wasmParams.CodeUploadAccess = wasmtypes.AllowNobody
wasmKeeper.SetParams(ctx, wasmParams)

Check failure on line 38 in app/upgrades/testnet/v1_0_0/upgrades.go

GitHub Actions / lint

Error return value of `wasmKeeper.SetParams` is not checked (errcheck)
return newVM, err
}
// update wasm to permission nobody
wasmParams := wasmKeeper.GetParams(ctx)
wasmParams.CodeUploadAccess = wasmtypes.AllowNobody
wasmKeeper.SetParams(ctx, wasmParams)

Check failure on line 67 in app/upgrades/testnet/v14/upgrades.go

GitHub Actions / lint

Error return value of `wasmKeeper.SetParams` is not checked (errcheck)
logger.Info(fmt.Sprintf("updated wasm params to %v", wasmParams))
// update discard BH of oracle
math "math"
math_bits "math/bits"
_ "github.com/cosmos/cosmos-sdk/types"

Check warning on line 9 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/cosmos/gogoproto/gogoproto"

Check warning on line 11 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
proto "github.com/cosmos/gogoproto/proto"
_ "google.golang.org/protobuf/types/known/timestamppb"

Check warning on line 13 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

Check failure on line 17 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
var _ = fmt.Errorf
var _ = math.Inf
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Extended_Pair_Old struct {

Check warning on line 27 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

var-naming: don't use underscores in Go names; type Extended_Pair_Old should be ExtendedPairOld (revive)
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`

Check warning on line 28 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

var-naming: struct field Id should be ID (revive)
AssetIn uint64 `protobuf:"varint,2,opt,name=asset_in,json=assetIn,proto3" json:"asset_in,omitempty" yaml:"asset_in"`
AssetOut uint64 `protobuf:"varint,3,opt,name=asset_out,json=assetOut,proto3" json:"asset_out,omitempty" yaml:"asset_out"`
IsInterPool bool `protobuf:"varint,4,opt,name=is_inter_pool,json=isInterPool,proto3" json:"is_inter_pool,omitempty" yaml:"is_inter_pool"`
func (*Extended_Pair_Old) ProtoMessage() {}
func (*Extended_Pair_Old) Descriptor() ([]byte, []int) {
return fileDescriptor_b9f686c34547a278, []int{0}
}

Check failure on line 41 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
func (m *Extended_Pair_Old) XXX_Unmarshal(b []byte) error {

Check warning on line 42 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

var-naming: don't use underscores in Go names; method XXX_Unmarshal should be XXXUnmarshal (revive)
return m.Unmarshal(b)
}

Check failure on line 44 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
func (m *Extended_Pair_Old) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {

Check warning on line 45 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

var-naming: don't use underscores in Go names; method XXX_Marshal should be XXXMarshal (revive)
if deterministic {
return xxx_messageInfo_Extended_Pair_Old.Marshal(b, m, deterministic)
} else {

Check warning on line 48 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return b[:n], nil
}
}
func (m *Extended_Pair_Old) XXX_Merge(src proto.Message) {

Check warning on line 57 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

var-naming: don't use underscores in Go names; method XXX_Merge should be XXXMerge (revive)
xxx_messageInfo_Extended_Pair_Old.Merge(m, src)
}
func (m *Extended_Pair_Old) XXX_Size() int {
func (m *AssetRatesParams_Old) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AssetRatesParams_Old.Marshal(b, m, deterministic)
} else {

Check warning on line 141 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
n += 2
}
if m.AssetOutPoolID != 0 {
n += 1 + sovTemp(uint64(m.AssetOutPoolID))

Check failure on line 498 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

unnecessary conversion (unconvert)
}
if m.MinUsdValueLeft != 0 {
n += 1 + sovTemp(uint64(m.MinUsdValueLeft))
var l int
_ = l
if m.AssetID != 0 {
n += 1 + sovTemp(uint64(m.AssetID))

Check failure on line 513 in x/lend/migrations/v2/types/lend.pb.go

GitHub Actions / lint

unnecessary conversion (unconvert)
}
l = m.UOptimal.Size()
n += 1 + l + sovTemp(uint64(l))