Preparing report...

Report for github.com/xenking/fast-decimal

(v0.0.0-20220904083926-8c40006b52ea)

A+    Excellent!    Found 10 issues across 53 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!


gofmt100%

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

No problems detected. Good job!


gocyclo84%

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.

    • big_ctx.go
    • Line 2201: warning: cyclomatic complexity 36 of function (Context).Quo() is high (> 15) (gocyclo)
    • Line 1976: warning: cyclomatic complexity 16 of function (Context).Pow() is high (> 15) (gocyclo)
    • Line 2134: warning: cyclomatic complexity 16 of function (Context).Quantize() is high (> 15) (gocyclo)
    • Line 1698: warning: cyclomatic complexity 16 of function (Context).mul() is high (> 15) (gocyclo)
    • Line 1292: warning: cyclomatic complexity 16 of function (Context).log() is high (> 15) (gocyclo)
    • big.go
    • Line 807: warning: cyclomatic complexity 32 of function (*Big).Format() is high (> 15) (gocyclo)
    • Line 705: warning: cyclomatic complexity 19 of function (*Big).Float64() is high (> 15) (gocyclo)
    • format.go
    • Line 157: warning: cyclomatic complexity 23 of function (*formatter).format() is high (> 15) (gocyclo)
    • Line 24: warning: cyclomatic complexity 21 of function roundString() is high (> 15) (gocyclo)
    • scan.go
    • Line 112: warning: cyclomatic complexity 23 of function (*Big).scanForm() is high (> 15) (gocyclo)
    • Line 282: warning: cyclomatic complexity 19 of function (*Big).scanExponent() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 17 of function (*Big).scanMant() is high (> 15) (gocyclo)
    • Line 12: warning: cyclomatic complexity 16 of function (*Big).scan() is high (> 15) (gocyclo)
    • context.go
    • Line 320: warning: cyclomatic complexity 17 of function (Condition).String() is high (> 15) (gocyclo)
    • suite/suite.go
    • Line 166: warning: cyclomatic complexity 16 of function (Condition).String() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • big.go
    • Line 874: warning: ineffectual assignment to prec (ineffassign)
    • Line 874: warning: ineffectual assignment to prec (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words