add cf task metrics #1
Annotations
10 errors and 2 warnings
linter:
collectors/tasks.go#L159
Error return value of `c.reportTasksMetrics` is not checked (errcheck)
|
linter:
fetcher/fetcher_test.go#L126
File is not `gofmt`-ed with `-s` (gofmt)
|
linter:
fetcher/sessionext_test.go#L124
File is not `gofmt`-ed with `-s` (gofmt)
|
linter:
collectors/tasks.go#L6
File is not `gofmt`-ed with `-s` (gofmt)
|
linter:
collectors/tasks.go#L212
G601: Implicit memory aliasing in for loop. (gosec)
|
linter:
collectors/tasks.go#L228
unnecessary conversion (unconvert)
|
linter:
collectors/tasks.go#L237
unnecessary conversion (unconvert)
|
linter:
collectors/tasks.go#L189
(TasksCollector).reportTasksMetrics - result 0 (error) is always nil (unparam)
|
linter:
models/model.go#L6
import 'code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant' is not allowed from list 'Main' (depguard)
|
linter:
models/model.go#L7
import 'code.cloudfoundry.org/cli/resources' is not allowed from list 'Main' (depguard)
|
linter:
collectors/tasks.go#L197
var-naming: don't use underscores in Go names; struct field application_id should be applicationID (revive)
|
linter:
collectors/tasks.go#L202
var-naming: don't use underscores in Go names; var application_id should be applicationID (revive)
|