diff --git a/.golangci.yml b/.golangci.yml index 466029897bf7d..817f6491f3f4d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,6 +14,7 @@ linters: - gosimple - govet - ineffassign + - interfacebloat - nakedret - nilerr - predeclared diff --git a/metric.go b/metric.go index 23098bb8bc71e..64b62324406be 100644 --- a/metric.go +++ b/metric.go @@ -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. diff --git a/plugins/inputs/procstat/process.go b/plugins/inputs/procstat/process.go index f31cef4abe1c6..6337e238b7ad8 100644 --- a/plugins/inputs/procstat/process.go +++ b/plugins/inputs/procstat/process.go @@ -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