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

task: update golangci-lint to latest #161

Merged
merged 2 commits into from
Sep 28, 2022
Merged

task: update golangci-lint to latest #161

merged 2 commits into from
Sep 28, 2022

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Sep 28, 2022

Proposed changes

Updating to latest lint version and needed fixes preventing me from committing other changes

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

@gssbzn gssbzn requested a review from a team as a code owner September 28, 2022 09:08
@gssbzn gssbzn requested review from blva and removed request for a team September 28, 2022 09:08
@@ -142,3 +142,10 @@ linters:
# - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
# - wrapcheck # Checks that errors returned from external packages are wrapped [fast: false, auto-fix: false]
# - wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]

run:
go: '1.17'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ping to prevent generic warnings, we don't use generics

for i := 0; i < len(intermediateDigest); i++ {
result[i] = intermediateDigest[i]
}
copy(result, intermediateDigest)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

new fix

@@ -74,7 +74,6 @@ func TestClusters_Get(t *testing.T) {
client, mux, teardown := setup()
defer teardown()

clusterID := "533d7d4730040be257defe88"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

driveby, already defined

@@ -15,7 +15,7 @@
/*
Package opsmngr provides a client for using the MongoDB Ops Manager and Cloud Manager API.

Usage
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

linter complains since the gofmt changed in 1.19

@gssbzn gssbzn merged commit ef14d35 into master Sep 28, 2022
@gssbzn gssbzn deleted the update-golangci-lint branch September 28, 2022 09:16
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.

None yet

2 participants