Pattern: Inconsistent context.Context
usage as parameter
Issue: -
By convention, context.Context
should be the first parameter of a function. This rule spots function declarations that do not follow the convention.
allowTypesBefore
: (string) comma-separated list of types that may be before 'context.Context'
[rule.context-as-argument]
arguments = [{allowTypesBefore = "*testing.T,*github.com/user/repo/testing.Harness"}]