Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make
- >> checking code style
- >> checking license header
- >> running golangci-lint
- GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
- GO111MODULE=on /Users/alex/go/bin/golangci-lint run ./...
- collector/sysctl_bsd.go:52:2: `valueType` is unused (structcheck)
- valueType prometheus.ValueType
- ^
- collector/paths.go:38:6: `rootfsFilePath` is unused (deadcode)
- func rootfsFilePath(name string) string {
- ^
- collector/diskstats_common.go:54:2: `ioTimeSecondsDesc` is unused (deadcode)
- ioTimeSecondsDesc = prometheus.NewDesc(
- ^
- collector/helper.go:22:6: `readUintFromFile` is unused (deadcode)
- func readUintFromFile(path string) (uint64, error) {
- ^
- collector/filesystem_bsd.go:43:82: SA4000: identical expressions on the left and right side of the '==' operator (staticcheck)
- count := C.getmntinfo(&mntbuf, C.MNT_NOWAIT)
- ^
- collector/filesystem_common.go:54:30: U1000: field `options` is unused (unused)
- device, mountPoint, fsType, options string
- ^
- collector/paths.go:27:2: U1000: var `rootfsPath` is unused (unused)
- rootfsPath = kingpin.Flag("path.rootfs", "rootfs mountpoint.").Default("/").String()
- ^
- make: *** [common-lint] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement