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

golangci-lint: add as a CI and fix raised concerns #117

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Conversation

oxzi
Copy link
Member

@oxzi oxzi commented Oct 25, 2023

Implement the well known meta linter golangci-lint in the CI to check for common errors, also in Pull Requests.

This commit also fixes existing issues raised by golangci-lint: simplifications, cleaning up an unused private struct field, and setting an http.Server's timeouts, which are indefinite by default.

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Oct 25, 2023
@julianbrost julianbrost self-requested a review October 27, 2023 14:08
Copy link
Collaborator

@julianbrost julianbrost left a comment

Choose a reason for hiding this comment

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

In general: I haven't used golangci-lint before, but why not, let's give it a try.

.github/workflows/golangci-lint.yml Outdated Show resolved Hide resolved
.github/workflows/golangci-lint.yml Outdated Show resolved Hide resolved
internal/listener/listener.go Outdated Show resolved Hide resolved
Implement the well known meta linter golangci-lint in the CI to check
for common errors, also in Pull Requests.

This commit also fixes existing issues raised by golangci-lint:
simplifications, cleaning up an unused private struct field, and setting
an http.Server's timeouts, which are indefinite by default.
@julianbrost julianbrost merged commit 953430a into main Oct 30, 2023
2 checks passed
@julianbrost julianbrost deleted the golangci-lint branch October 30, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants