Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow whitelist for the context parameter check #616

Merged
merged 3 commits into from Jan 1, 2022

Commits on Dec 15, 2021

  1. 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 mgechev#605 for a little more context on this.
    
    Fixes mgechev#605
    euank committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    85e43d0 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Save a level of indentation in context-as-arg validation

    We can unindent if we make the above check more specific
    euank committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    2aaef33 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Configuration menu
    Copy the full SHA
    8263b36 View commit details
    Browse the repository at this point in the history