Preparing report...

Report for github.com/mokitanetwork/aether

(v0.0.0-20221130065939-aa8e8af583ab)

A+    Excellent!    Found 70 issues across 494 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt91%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • x/lend/keeper/keeper.go
    • Line 501: warning: cyclomatic complexity 51 of function (Keeper).BorrowAsset() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 31 of function (Keeper).RepayAsset() is high (> 15) (gocyclo)
    • Line 981: warning: cyclomatic complexity 30 of function (Keeper).DepositBorrowAsset() is high (> 15) (gocyclo)
    • Line 1197: warning: cyclomatic complexity 23 of function (Keeper).CloseBorrow() is high (> 15) (gocyclo)
    • Line 233: warning: cyclomatic complexity 21 of function (Keeper).WithdrawAsset() is high (> 15) (gocyclo)
    • Line 1312: warning: cyclomatic complexity 17 of function (Keeper).BorrowAlternate() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 17 of function (Keeper).LendAsset() is high (> 15) (gocyclo)
    • Line 1125: warning: cyclomatic complexity 16 of function (Keeper).DrawAsset() is high (> 15) (gocyclo)
    • x/liquidity/keeper/rewards.go
    • Line 115: warning: cyclomatic complexity 27 of function (Keeper).GetFarmingRewardsData() is high (> 15) (gocyclo)
    • Line 337: warning: cyclomatic complexity 17 of function (Keeper).Unfarm() is high (> 15) (gocyclo)
    • app/app.go
    • Line 1227: warning: cyclomatic complexity 21 of function upgradeHandlers() is high (> 15) (gocyclo)
    • x/esm/abci.go
    • Line 15: warning: cyclomatic complexity 21 of function BeginBlocker() is high (> 15) (gocyclo)
    • x/liquidity/keeper/swap.go
    • Line 577: warning: cyclomatic complexity 17 of function (Keeper).ConvertAccumulatedSwapFeesWithSwapDistrToken() is high (> 15) (gocyclo)
    • Line 22: warning: cyclomatic complexity 17 of function (Keeper).ValidateMsgLimitOrder() is high (> 15) (gocyclo)
    • x/liquidation/keeper/liquidate_borrow.go
    • Line 329: warning: cyclomatic complexity 32 of function (Keeper).UnLiquidateLockedBorrows() is high (> 15) (gocyclo)
    • Line 14: warning: cyclomatic complexity 28 of function (Keeper).LiquidateBorrows() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 20 of function (Keeper).UpdateLockedBorrows() is high (> 15) (gocyclo)
    • x/auction/keeper/debt.go
    • Line 189: warning: cyclomatic complexity 20 of function (Keeper).closeDebtAuction() is high (> 15) (gocyclo)
    • Line 270: warning: cyclomatic complexity 16 of function (Keeper).PlaceDebtAuctionBid() is high (> 15) (gocyclo)
    • x/esm/keeper/esm.go
    • Line 356: warning: cyclomatic complexity 16 of function (Keeper).SetUpCollateralRedemptionForVault() is high (> 15) (gocyclo)
    • x/auction/keeper/dutch.go
    • Line 468: warning: cyclomatic complexity 37 of function (Keeper).RestartDutchAuctions() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 37 of function (Keeper).PlaceDutchAuctionBid() is high (> 15) (gocyclo)
    • Line 368: warning: cyclomatic complexity 20 of function (Keeper).CloseDutchAuction() is high (> 15) (gocyclo)
    • app/export.go
    • Line 52: warning: cyclomatic complexity 16 of function (*App).prepForZeroHeightGenesis() is high (> 15) (gocyclo)
    • x/auction/keeper/dutch_lend.go
    • Line 177: warning: cyclomatic complexity 32 of function (Keeper).PlaceLendDutchAuctionBid() is high (> 15) (gocyclo)
    • Line 383: warning: cyclomatic complexity 16 of function (Keeper).CloseDutchLendAuction() is high (> 15) (gocyclo)
    • x/vault/keeper/msg_server.go
    • Line 1246: warning: cyclomatic complexity 33 of function (msgServer).MsgWithdrawStableMint() is high (> 15) (gocyclo)
    • Line 597: warning: cyclomatic complexity 32 of function (msgServer).MsgRepay() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 32 of function (msgServer).MsgDepositStableMint() is high (> 15) (gocyclo)
    • Line 442: warning: cyclomatic complexity 30 of function (msgServer).MsgDraw() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 30 of function (msgServer).MsgCreate() is high (> 15) (gocyclo)
    • Line 948: warning: cyclomatic complexity 29 of function (msgServer).MsgCreateStableMint() is high (> 15) (gocyclo)
    • Line 760: warning: cyclomatic complexity 29 of function (msgServer).MsgClose() is high (> 15) (gocyclo)
    • Line 324: warning: cyclomatic complexity 23 of function (msgServer).MsgWithdraw() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 20 of function (msgServer).MsgDeposit() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!