Skip to content

Commit

Permalink
Merge pull request #3271 from grafana/add-interfacebloat-linter
Browse files Browse the repository at this point in the history
Add interfacebloat linter
  • Loading branch information
codebien authored Aug 16, 2023
2 parents 647db13 + a4ad16f commit cef6e56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ linters:
- govet
- importas
- ineffassign
- interfacebloat
- lll
- makezero
- misspell
Expand Down
2 changes: 2 additions & 0 deletions lib/executors.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ type ExecutionStep struct {
// TODO: make []ExecutionStep or []ExecutorConfig their own type?

// ExecutorConfig is an interface that should be implemented by all executor config types
//
//nolint:interfacebloat // We don't have plan to split it.
type ExecutorConfig interface {
Validate() []error

Expand Down
5 changes: 5 additions & 0 deletions lib/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ type VUActivationParams struct {
//
// TODO: Rename this to something more obvious? This name made sense a very long
// time ago.
//
// interfacebloat: We may evaluate in the future to move out some methods;
// but considering how central it is, it would require a huge effort.
//
//nolint:interfacebloat
type Runner interface {
// Creates an Archive of the runner. There should be a corresponding NewFromArchive() function
// that will restore the runner from the archive.
Expand Down

0 comments on commit cef6e56

Please sign in to comment.