Preparing report...

Report for github.com/Schneizelw/elasticsearch/procfs

(v0.0.0-20191012074508-8adf9e9b715d)

C    Needs some work    Found 92 issues across 94 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!


gofmt2%

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

    • fs.go
    • Line 1: warning: file is not gofmted with -s (gofmt)
    • arp.go
    • Line 1: warning: file is not gofmted with -s (gofmt)
    • vm.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo81%

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.

    • vm.go
    • Line 80: warning: cyclomatic complexity 52 of function (FS).VM() is high (> 15) (gocyclo)
    • xfrm.go
    • Line 99: warning: cyclomatic complexity 33 of function (FS).NewXfrmStat() is high (> 15) (gocyclo)
    • crypto.go
    • Line 66: warning: cyclomatic complexity 25 of function parseCrypto() is high (> 15) (gocyclo)
    • zoneinfo.go
    • Line 86: warning: cyclomatic complexity 42 of function parseZoneinfo() is high (> 15) (gocyclo)
    • stat.go
    • Line 166: warning: cyclomatic complexity 25 of function (FS).Stat() is high (> 15) (gocyclo)
    • net_dev.go
    • Line 89: warning: cyclomatic complexity 19 of function (NetDev).parseLine() is high (> 15) (gocyclo)
    • mdstat.go
    • Line 66: warning: cyclomatic complexity 16 of function parseMDStat() is high (> 15) (gocyclo)
    • proc_status.go
    • Line 117: warning: cyclomatic complexity 22 of function (*ProcStatus).fillStatus() is high (> 15) (gocyclo)
    • mountstats.go
    • Line 319: warning: cyclomatic complexity 20 of function parseMountStatsNFS() is high (> 15) (gocyclo)
    • ipvs.go
    • Line 135: warning: cyclomatic complexity 18 of function parseIPVSBackendStatus() is high (> 15) (gocyclo)
    • sysfs/net_class.go
    • Line 106: warning: cyclomatic complexity 31 of function (NetClass).parseNetClassIface() is high (> 15) (gocyclo)
    • xfs/parse.go
    • Line 27: warning: cyclomatic complexity 29 of function ParseStats() is high (> 15) (gocyclo)
    • proc_limits.go
    • Line 88: warning: cyclomatic complexity 21 of function (Proc).Limits() is high (> 15) (gocyclo)
    • nfs/parse_nfsd.go
    • Line 26: warning: cyclomatic complexity 19 of function ParseServerRPCStats() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • iscsi/get.go
    • Line 195: warning: ineffectual assignment to systemPool (ineffassign)
    • Line 195: warning: ineffectual assignment to systemImage (ineffassign)

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!