Skip to content

Commit

Permalink
Disable revive.unexported-return linter (#4466)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSnowden committed Jun 14, 2023
1 parent a24557b commit 363e92c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ linters-settings:
disabled: true
- name: unexported-naming
disabled: true
- name: unexported-return
disabled: true
- name: unused-parameter
disabled: true
- name: unused-receiver
disabled: true
- name: use-any
disabled: true
- name: var-naming
disabled: true
- name: unused-parameter
disabled: true

# Rule tuning
- name: argument-limit
Expand Down
2 changes: 0 additions & 2 deletions service/history/workflow/update/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ var (
)

// ObserveCompletion exporses withOnComplete to unit tests
//
//revive:disable-next-line:unexported-return for testing
func ObserveCompletion(b *bool) updateOpt {
return withCompletionCallback(func() { *b = true })
}
4 changes: 0 additions & 4 deletions service/history/workflow/update/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ type (
regOpt func(*RegistryImpl)
)

//revive:disable:unexported-return I *want* it to be unexported

// WithInFlightLimit provides an optional limit to the number of incomplete
// updates that a Registry instance will allow.
func WithInFlightLimit(f func() int) regOpt {
Expand Down Expand Up @@ -133,8 +131,6 @@ func WithTracerProvider(t trace.TracerProvider) regOpt {
}
}

//revive:enable:unexported-return

var _ Registry = (*RegistryImpl)(nil)

func NewRegistry(store UpdateStore, opts ...regOpt) *RegistryImpl {
Expand Down

0 comments on commit 363e92c

Please sign in to comment.