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

Reconfigure Golangci Linter #1131

Closed
wants to merge 8 commits into from
Closed

Reconfigure Golangci Linter #1131

wants to merge 8 commits into from

Conversation

switchupcb
Copy link
Contributor

These aren't technically breaking changes because no code logic is supposed to be changed. However, there may be errors in translation. These improvements are beneficial over the long term for a more maintainable (and contributor-friendly) code base.

Style

Removed over 200 occurrences of nakedreturns. A lot of unhandled errors (that are now handled). A lot of setting errors (inside the if statement) before returning (as opposed to simply returning the error).

I placed recommendations for disabled linters in .golangci.yml. Edits by maintainers is allowed (as usual).

@switchupcb
Copy link
Contributor Author

#1132

@FedorLap2006 FedorLap2006 added the feedback Additional feedback is required label Mar 12, 2022
@switchupcb switchupcb marked this pull request as draft March 24, 2022 20:17
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Additional feedback is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants