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 various golangci-lint errors #2059

Merged
merged 3 commits into from
Feb 12, 2022
Merged

Fix various golangci-lint errors #2059

merged 3 commits into from
Feb 12, 2022

Conversation

Sajfer
Copy link
Contributor

@Sajfer Sajfer commented Jan 22, 2022

First, sorry for the huge MR.
Fixes golangci-lint errors exept for the error shown below:
Not sure how to solve this warnings. Suggestions would be appreciated.

$ golangci-lint run -E scopelint WARN [runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref. pkg/state/create.go:310:5: SA9001: defers in this range loop won't run unless the channel gets closed (staticcheck) defer func() { ^ pkg/state/state.go:1083:6: SA9001: defers in this range loop won't run unless the channel gets closed (staticcheck) defer clean() ^

Fixes #612

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks a lot for your help!

@mumoshu mumoshu changed the title Fix remaining golangci-lint errors Fix various golangci-lint errors Feb 12, 2022
@mumoshu mumoshu merged commit 2f04831 into roboll:master Feb 12, 2022
w33dw0r7d pushed a commit to w33dw0r7d/helmfile that referenced this pull request Mar 8, 2022
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.

chore: Check various golangci-lint errors
2 participants