chore: enable interfacebloat linter (#12174)
This commit is contained in:
parent
98393d9dd2
commit
b83bdd5eac
|
|
@ -14,6 +14,7 @@ linters:
|
|||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- interfacebloat
|
||||
- nakedret
|
||||
- nilerr
|
||||
- predeclared
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ type Field struct {
|
|||
// Metric is the type of data that is processed by Telegraf. Input plugins,
|
||||
// and to a lesser degree, Processor and Aggregator plugins create new Metrics
|
||||
// and Output plugins write them.
|
||||
// nolint:interfacebloat // conditionally allow to contain more methods
|
||||
type Metric interface {
|
||||
// Name is the primary identifier for the Metric and corresponds to the
|
||||
// measurement in the InfluxDB data model.
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/shirou/gopsutil/v3/process"
|
||||
)
|
||||
|
||||
// nolint:interfacebloat // conditionally allow to contain more methods
|
||||
type Process interface {
|
||||
PID() PID
|
||||
Tags() map[string]string
|
||||
|
|
|
|||
Loading…
Reference in New Issue