Preparing report...

Report for github.com/mage-coven/fury

(v0.0.0-20230530072741-6577280adbab)

A+    Excellent!    Found 46 issues across 754 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!


gofmt97%

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!


gocyclo96%

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/hard/keeper/borrow.go
    • Line 115: warning: cyclomatic complexity 21 of function (Keeper).ValidateBorrow() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 17 of function (Keeper).Borrow() is high (> 15) (gocyclo)
    • x/cdp/types/params.go
    • Line 219: warning: cyclomatic complexity 19 of function validateCollateralParams() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 17 of function (Params).Validate() is high (> 15) (gocyclo)
    • x/cdp/keeper/querier.go
    • Line 343: warning: cyclomatic complexity 35 of function FilterCDPs() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 17 of function queryGetTotalCollateral() is high (> 15) (gocyclo)
    • x/hard/keeper/grpc_query.go
    • Line 220: warning: cyclomatic complexity 18 of function (queryServer).Borrows() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 18 of function (queryServer).Deposits() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 16 of function (queryServer).UnsyncedBorrows() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 16 of function (queryServer).UnsyncedDeposits() is high (> 15) (gocyclo)
    • x/hard/keeper/querier.go
    • Line 219: warning: cyclomatic complexity 17 of function queryGetBorrows() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 17 of function queryGetDeposits() is high (> 15) (gocyclo)
    • app/export.go
    • Line 46: warning: cyclomatic complexity 17 of function (*App).prepForZeroHeightGenesis() 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!