Skip to content

Commit

Permalink
chore: enable interfacebloat linter (influxdata#12174)
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel authored Nov 10, 2022
1 parent 98393d9 commit b83bdd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ linters:
- gosimple
- govet
- ineffassign
- interfacebloat
- nakedret
- nilerr
- predeclared
Expand Down
1 change: 1 addition & 0 deletions metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/procstat/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b83bdd5

Please sign in to comment.