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

🌱 Fix lint issues: wrapcheck linter #446

Merged
merged 1 commit into from
May 13, 2021

Conversation

ristomcgehee
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Code quality improvement

  • What is the current behavior? (You can also link to an open issue here)
    This PR fixes issues from the wrapcheck linter (checks that errors returned from external packages are wrapped).
    Part of issue #173.

  • What is the new behavior (if this is a feature change)?
    n/a

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

Bumping version of golangci-lint because it has a fix for a false
positive we were encountering.
@@ -45,7 +45,7 @@ test: ## Runs unit test
go test -covermode atomic `go list ./... | grep -v e2e`

golangci-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.39.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.40.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bumping the version because 1.40.0 contains a fix for when the wrapcheck linter was flagging errors.Wrap() as needing wrapping (see issue).

@naveensrinivasan
Copy link
Member

Thank you for the contribution!

@naveensrinivasan naveensrinivasan merged commit 9214d71 into ossf:main May 13, 2021
@ristomcgehee ristomcgehee deleted the lint-wrapcheck branch May 20, 2021 04:08
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.

2 participants