Preparing report...

Report for github.com/gofiber/fiber/v2

(v2.49.2)

A+    Excellent!    Found 38 issues across 306 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • utils/ips.go
    • Line 43: warning: cyclomatic complexity 32 of function IsIPv6() is high (> 15) (gocyclo)
    • internal/wmi/wmi.go
    • Line 256: warning: cyclomatic complexity 45 of function (*Client).loadEntity() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 22 of function (*Client).Query() is high (> 15) (gocyclo)
    • internal/gopsutil/cpu/cpu_linux.go
    • Line 117: warning: cyclomatic complexity 28 of function InfoWithContext() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 27 of function CountsWithContext() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 17 of function parseStatLine() is high (> 15) (gocyclo)
    • internal/gopsutil/common/binary.go
    • Line 230: warning: cyclomatic complexity 35 of function Write() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 31 of function Read() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 25 of function (*encoder).value() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 21 of function (*decoder).value() is high (> 15) (gocyclo)
    • app.go
    • Line 499: warning: cyclomatic complexity 17 of function New() is high (> 15) (gocyclo)
    • internal/gopsutil/process/process_linux.go
    • Line 960: warning: cyclomatic complexity 53 of function (*Process).fillFromStatusWithContext() is high (> 15) (gocyclo)
    • Line 672: warning: cyclomatic complexity 24 of function (*Process).fillFromLimitsWithContext() is high (> 15) (gocyclo)
    • Line 561: warning: cyclomatic complexity 23 of function (*Process).MemoryMapsWithContext() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 19 of function (*Process).RlimitUsageWithContext() is high (> 15) (gocyclo)
    • Line 1139: warning: cyclomatic complexity 16 of function (*Process).fillFromTIDStatWithContext() is high (> 15) (gocyclo)
    • router.go
    • Line 308: warning: cyclomatic complexity 29 of function (*App).registerStatic() is high (> 15) (gocyclo)
    • path.go
    • Line 645: warning: cyclomatic complexity 34 of function (*Constraint).CheckConstraint() is high (> 15) (gocyclo)
    • Line 286: warning: cyclomatic complexity 21 of function (*routeParser).analyseParameterPart() is high (> 15) (gocyclo)
    • Line 478: warning: cyclomatic complexity 17 of function (*routeParser).getMatch() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 17 of function addParameterMetaInfo() is high (> 15) (gocyclo)
    • listen.go
    • Line 257: warning: cyclomatic complexity 29 of function (*App).startupMessage() is high (> 15) (gocyclo)
    • middleware/cache/manager_msgp.go
    • Line 206: warning: cyclomatic complexity 26 of function (*item).UnmarshalMsg() is high (> 15) (gocyclo)
    • Line 12: warning: cyclomatic complexity 26 of function (*item).DecodeMsg() is high (> 15) (gocyclo)
    • Line 95: warning: cyclomatic complexity 18 of function (*item).EncodeMsg() is high (> 15) (gocyclo)
    • helpers.go
    • Line 308: warning: cyclomatic complexity 20 of function getOffer() is high (> 15) (gocyclo)
    • ctx.go
    • Line 714: warning: cyclomatic complexity 17 of function (*Ctx).extractIPsFromHeader() is high (> 15) (gocyclo)
    • Line 775: warning: cyclomatic complexity 17 of function (*Ctx).extractIPFromHeader() is high (> 15) (gocyclo)
    • internal/gopsutil/mem/mem_linux.go
    • Line 55: warning: cyclomatic complexity 44 of function fillFromMeminfoWithContext() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 17 of function SwapMemoryWithContext() 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!