-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
@@ -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' |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
Proposed changes
Updating to latest lint version and needed fixes preventing me from committing other changes
Checklist
make fmt
and formatted my code