Euan Kemp
af953e6189
Allow whitelist for the context parameter check ( #616 )
...
* Allow a whitelist for the context parameter check
This allows users to configure a set of types that may appear before
`context.Context`.
Notably, I think this rule is useful for allowing the `*testing.T` type
to come before `context.Context`, though there may be other uses (such
as putting a tracer before it, etc).
See #605 for a little more context on this.
Fixes #605
* Save a level of indentation in context-as-arg validation
We can unindent if we make the above check more specific
* refactoring taking into account chavacava's review
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2021-12-31 17:11:18 -08:00
..
2021-10-17 20:34:48 +02:00
2021-10-17 20:34:48 +02:00
2018-10-03 11:56:57 -07:00
2021-10-17 20:34:48 +02:00
2021-10-14 20:56:29 +02:00
2021-10-23 13:25:41 +02:00
2018-09-22 15:27:22 -07:00
2021-05-31 21:54:58 +02:00
2021-10-17 20:34:48 +02:00
2018-10-30 15:37:27 -07:00
2018-10-30 15:37:27 -07:00
2018-10-03 11:56:57 -07:00
2021-12-31 17:11:18 -08:00
2018-09-22 15:27:22 -07:00
2021-10-17 20:34:48 +02:00
2021-05-31 21:54:58 +02:00
2021-10-23 13:25:41 +02:00
2018-10-30 15:37:27 -07:00
2019-03-20 11:54:03 -07:00
2020-05-08 11:14:21 -07:00
2021-09-26 08:28:58 +02:00
2018-10-30 15:37:27 -07:00
2018-09-22 15:27:22 -07:00
2019-03-20 11:54:27 -07:00
2021-10-30 08:45:37 +02:00
2018-09-22 15:27:22 -07:00
2021-10-23 13:25:41 +02:00
2021-10-17 21:12:36 +02:00
2018-09-22 15:27:22 -07:00
2021-10-17 20:34:48 +02:00
2021-10-17 20:34:48 +02:00
2018-10-30 15:37:27 -07:00
2020-05-08 22:43:14 +02:00
2018-09-22 15:27:22 -07:00
2021-06-29 21:40:40 +02:00
2021-10-23 13:25:41 +02:00
2018-09-22 15:27:22 -07:00
2018-10-30 15:37:27 -07:00
2021-10-23 13:25:41 +02:00
2021-10-17 20:34:48 +02:00
2020-02-26 10:32:47 -10:00
2018-09-22 15:27:22 -07:00
2021-06-15 11:36:41 +02:00
2021-10-23 09:29:14 +02:00
2018-10-30 15:37:27 -07:00
2021-08-26 08:41:58 +02:00
2018-09-29 07:04:10 +02:00
2018-09-22 15:27:22 -07:00
2018-10-30 15:37:27 -07:00
2018-09-22 15:27:22 -07:00
2021-10-23 13:25:41 +02:00
2021-10-14 20:56:29 +02:00
2021-03-18 15:10:22 -07:00
2021-05-31 21:54:58 +02:00
2021-10-01 13:55:53 +02:00
2021-09-12 16:09:14 -07:00
2021-10-15 13:14:03 -07:00
2020-07-23 02:17:20 +03:00
2018-09-22 15:27:22 -07:00
2021-10-17 20:34:48 +02:00
2018-09-22 15:27:22 -07:00
2021-05-31 21:54:58 +02:00
2019-04-21 10:13:03 -07:00
2020-08-15 00:50:13 +03:00
2021-08-16 12:15:17 +02:00
2021-12-31 17:11:18 -08:00
2018-09-22 15:27:22 -07:00
2021-10-17 20:34:48 +02:00
2018-10-03 16:01:41 +08:00