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

chore(linter): in switch case default signifies exhaustive match and fix forbidigo #204

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

programmer04
Copy link
Member

What this PR does / why we need it:

This PR adjusts the configuration of golangci-lint, to get rid of //nolint:exhaustive. It is sensible always to treat switch statements that include case default as exhaustive.

Also, it fixes a typo in forbidigo configuration.

@programmer04 programmer04 self-assigned this Oct 23, 2023
@programmer04 programmer04 requested a review from a team as a code owner October 23, 2023 08:25
@programmer04 programmer04 enabled auto-merge (squash) October 23, 2023 08:25
@programmer04 programmer04 merged commit 72d80d1 into main Oct 23, 2023
4 checks passed
@programmer04 programmer04 deleted the fix-exh branch October 23, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants