Skip to content

Commit

Permalink
fix(lint): fix unused linter directive
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Aug 25, 2023
1 parent 6649667 commit 0a0fbcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testutil/nullify/nullify.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
// reflection and initialize the nil and empty slices,
// structs, and pointers.
//
//nolint:exhaustive

func Fill(x interface{}) interface{} {
v := reflect.Indirect(reflect.ValueOf(x))
switch v.Kind() {

Check failure on line 23 in testutil/nullify/nullify.go

View workflow job for this annotation

GitHub Actions / lint-go

missing cases in switch of type reflect.Kind: reflect.Invalid, reflect.Bool, reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr, reflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128, reflect.Array, reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Pointer|reflect.Ptr, reflect.String, reflect.UnsafePointer (exhaustive)
Expand Down
2 changes: 1 addition & 1 deletion x/mint/types/minter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestNextInflation(t *testing.T) {
}
}

//nolint:lll

Check failure on line 35 in x/mint/types/minter_test.go

View workflow job for this annotation

GitHub Actions / lint-go

File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(github.com/cometbft/cometbft) -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cosmos/interchain-security) -s prefix(github.com/cosmos/ibc-go) -s prefix(github.com/okp4/okp4d) --custom-order (gci)

Check failure on line 35 in x/mint/types/minter_test.go

View workflow job for this annotation

GitHub Actions / lint-go

File is not `goimports`-ed (goimports)
func TestBlockProvision(t *testing.T) {
minter := InitialMinter(sdk.NewDecWithPrec(1, 1))
params := DefaultParams()
Expand Down

0 comments on commit 0a0fbcd

Please sign in to comment.