Skip to content

Commit

Permalink
lint: Add musttag linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed Jun 4, 2024
1 parent 14f9030 commit f1b64b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/ci/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ linters:
- ineffassign
- makezero
- misspell
- musttag
- nakedret
- nilerr
- noctx
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/service/common/etcdop/op/op_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type testOp struct {
}

type testValue struct {
Foo string
Foo string `json:"foo"`
}

type opTestCase[R any] struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/service/stream/api/mapper/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (m *Mapper) NewTaskResponse(entity task.Task) (*api.Task, error) {
// Outputs
if entity.Outputs != nil {
response.Outputs = &api.TaskOutputs{}
err := mapstructure.Decode(entity.Outputs, response.Outputs)
err := mapstructure.Decode(entity.Outputs, response.Outputs) // nolint: musttag
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f1b64b8

Please sign in to comment.