[go: up one dir, main page]

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

golangci-lint: enable fatcontext and canonicalheader #3902

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

mstoykov
Copy link
Contributor

What?

Add new linters from golangci-lint update

Why?

  • fatcontext prevents a problem we had in the past where you keep adding variables to a context
  • canonicalheader has some performance improvements as it doesn't require go to canonize the header on each invocation

Those are the only new linters since last we updated

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

- fatcontext prevents a problem we had in the past where you keep adding
  variables to a context
  canonicalheader has some performance improvements as it doesn't
  require go to canonize the header on each invocation

Those are the only new linters since last we updated
@mstoykov mstoykov added this to the v0.54.0 milestone Aug 20, 2024
@mstoykov mstoykov requested a review from a team as a code owner August 20, 2024 08:13
@mstoykov mstoykov requested review from codebien and olegbespalov and removed request for a team August 20, 2024 08:13
@mstoykov mstoykov merged commit c5dc773 into master Aug 20, 2024
22 checks passed
@mstoykov mstoykov deleted the golangCIUpdates branch August 20, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants