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

Update golangci-lint to latest version (v1.36.0) #1052

Merged
merged 1 commit into from
Feb 17, 2021
Merged

Conversation

JoelSpeed
Copy link
Member

@JoelSpeed JoelSpeed commented Feb 17, 2021

Description

Update golangci-lint to v1.36.0 and fix the new linting things it's complaining about

Motivation and Context

It hasn't been updated in the while and I recently setup a new machine, which had different issues to what I was seeing in CI

How Has This Been Tested?

make lint

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.

@JoelSpeed JoelSpeed requested a review from a team as a code owner February 17, 2021 20:22
Comment on lines +808 to +809
// TODO(@NickMeves): Remove once all provider are updated to implement EnrichSession
// nolint:staticcheck
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the rest of the Todos are marked for you @NickMeves, I think it makes sense to continue with that 😉

TLSClientConfig: &tls.Config{
RootCAs: pool,
},
transport := http.DefaultTransport.(*http.Transport).Clone()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a random optimisation I've included so we use the default config and only override the bits we need

Copy link
Member

@NickMeves NickMeves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@JoelSpeed JoelSpeed merged commit 322308a into master Feb 17, 2021
@JoelSpeed JoelSpeed deleted the update-linter branch February 17, 2021 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants