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

enable errcheck and exclude all components which are not passing. #9726

Merged

Conversation

fatsheep9146
Copy link
Contributor

@fatsheep9146 fatsheep9146 commented May 4, 2022

Description:
Fix #9750 as @mx-psi suggested, first enable errcheck and exclude all components that are not passing right now.

Link to tracking Issue:
#9750

Signed-off-by: Ziqi Zhao zhaoziqi9146@gmail.com

@dashpole dashpole added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 4, 2022
…h are not passing.

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
@fatsheep9146 fatsheep9146 force-pushed the fatsheep9146/add-linter-errcheck branch from 9f6f6b6 to 4307761 Compare May 4, 2022 23:32
@mx-psi mx-psi mentioned this pull request May 5, 2022
82 tasks
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

LGTM! I created #9749 for the follow up work. Feel free to do as much or as little from the list as you want, otherwise each of the component's owners can also tackle their own component's issues.

Also, I would like to keep #9109 open, since it also refers to other linters. Could you change your PR description so that it fixes #9750 instead?

@fatsheep9146
Copy link
Contributor Author

LGTM! I created #9749 for the follow up work. Feel free to do as much or as little from the list as you want, otherwise each component owners can also tackle their own component.

Also, I would like to keep #9109 open, since it also refers to other linters. Could you change your PR description so that it fixes #9750 instead?

No problem, I've already changed comments.

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label May 5, 2022
@djaglowski djaglowski merged commit 2e78267 into open-telemetry:main May 5, 2022
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 5, 2022
…en-telemetry#9726)

* add errcheck to golangci-lint config, and exclude all components which are not passing.

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix missing issues for linux

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix missing issues for linux

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
…en-telemetry#9726)

* add errcheck to golangci-lint config, and exclude all components which are not passing.

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix missing issues for linux

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix missing issues for linux

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[all] Enable errcheck linter on golangci-lint for all components that pass
5 participants