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

Add goconst and fix duplication #55

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Add goconst and fix duplication #55

merged 1 commit into from
Oct 28, 2023

Conversation

ericcornelissen
Copy link
Owner

Relates to #48, #52

Summary

Update the make vet target to run goconst and also fix all duplication it detects.

Update the `make vet` target to run goconst [1] and fix all duplication
it detects. This is achieved either by extracting duplicated values into
constants or refactoring to avoid the constants altogether.

--
1. https://github.com/jgautheron/goconst

Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
@ericcornelissen ericcornelissen added meta Relates to the project or repository itself dependencies Changes to the project's dependencies refactor Changes existing code without changing functionality labels Oct 28, 2023
@ericcornelissen ericcornelissen merged commit 8ac9350 into main Oct 28, 2023
10 checks passed
@ericcornelissen ericcornelissen deleted the goconst branch October 28, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes to the project's dependencies meta Relates to the project or repository itself refactor Changes existing code without changing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant