Preparing report...

Report for github.com/prometheus/procfs

(v0.11.0)

A+    Excellent!    Found 36 issues across 191 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!


gocyclo83%

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.

    • proc_snmp6.go
    • Line 161: warning: cyclomatic complexity 100 of function parseSNMP6Stats() is high (> 15) (gocyclo)
    • proc_status.go
    • Line 120: warning: cyclomatic complexity 25 of function (*ProcStatus).fillStatus() is high (> 15) (gocyclo)
    • sysfs/mdraid.go
    • Line 53: warning: cyclomatic complexity 19 of function (FS).Mdraids() is high (> 15) (gocyclo)
    • netstat_test.go
    • Line 20: warning: cyclomatic complexity 20 of function TestNetStat() is high (> 15) (gocyclo)
    • mdstat.go
    • Line 80: warning: cyclomatic complexity 18 of function parseMDStat() is high (> 15) (gocyclo)
    • ipvs.go
    • Line 136: warning: cyclomatic complexity 18 of function parseIPVSBackendStatus() is high (> 15) (gocyclo)
    • net_ip_socket.go
    • Line 152: warning: cyclomatic complexity 16 of function parseNetIPSocketLine() is high (> 15) (gocyclo)
    • zoneinfo.go
    • Line 87: warning: cyclomatic complexity 42 of function parseZoneinfo() is high (> 15) (gocyclo)
    • net_xfrm.go
    • Line 102: warning: cyclomatic complexity 33 of function (FS).NewXfrmStat() is high (> 15) (gocyclo)
    • net_dev.go
    • Line 89: warning: cyclomatic complexity 19 of function (NetDev).parseLine() is high (> 15) (gocyclo)
    • net_wireless.go
    • Line 84: warning: cyclomatic complexity 16 of function parseWireless() is high (> 15) (gocyclo)
    • xfs/parse.go
    • Line 27: warning: cyclomatic complexity 29 of function ParseStats() is high (> 15) (gocyclo)
    • sysfs/class_fibrechannel.go
    • Line 147: warning: cyclomatic complexity 24 of function parseFibreChannelStatistics() is high (> 15) (gocyclo)
    • Line 88: warning: cyclomatic complexity 19 of function (FS).parseFibreChannelHost() is high (> 15) (gocyclo)
    • nfs/parse_nfsd.go
    • Line 26: warning: cyclomatic complexity 19 of function ParseServerRPCStats() is high (> 15) (gocyclo)
    • fscache.go
    • Line 260: warning: cyclomatic complexity 49 of function parseFscacheinfo() is high (> 15) (gocyclo)
    • crypto.go
    • Line 108: warning: cyclomatic complexity 20 of function (*Crypto).parseKV() is high (> 15) (gocyclo)
    • proc_netstat.go
    • Line 185: warning: cyclomatic complexity 119 of function parseProcNetstat() is high (> 15) (gocyclo)
    • proc_snmp.go
    • Line 149: warning: cyclomatic complexity 90 of function parseSnmp() is high (> 15) (gocyclo)
    • vm.go
    • Line 82: warning: cyclomatic complexity 52 of function (FS).VM() is high (> 15) (gocyclo)
    • meminfo.go
    • Line 161: warning: cyclomatic complexity 52 of function parseMemInfo() is high (> 15) (gocyclo)
    • softirqs.go
    • Line 53: warning: cyclomatic complexity 35 of function parseSoftirqs() is high (> 15) (gocyclo)
    • mountstats.go
    • Line 324: warning: cyclomatic complexity 23 of function parseMountStatsNFS() is high (> 15) (gocyclo)
    • cpuinfo.go
    • Line 76: warning: cyclomatic complexity 40 of function parseCPUInfoX86() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 23 of function parseCPUInfoS390X() is high (> 15) (gocyclo)
    • stat.go
    • Line 181: warning: cyclomatic complexity 23 of function parseStat() is high (> 15) (gocyclo)
    • proc_limits.go
    • Line 88: warning: cyclomatic complexity 21 of function (Proc).Limits() 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!