chore: enable interfacebloat linter (#12174)

This commit is contained in:
Paweł Żak 2022-11-10 19:41:11 +01:00 committed by GitHub
parent 98393d9dd2
commit b83bdd5eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ linters:
- gosimple
- govet
- ineffassign
- interfacebloat
- nakedret
- nilerr
- predeclared

View File

@ -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.

View File

@ -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