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