Skip to content

chore(lint): add GolangCI-Lint integration and Makefile targets#48

Merged
krixlion merged 16 commits into
thevxn:masterfrom
ZwangaMukwevho:add-golangci-lint
Jul 17, 2025
Merged

chore(lint): add GolangCI-Lint integration and Makefile targets#48
krixlion merged 16 commits into
thevxn:masterfrom
ZwangaMukwevho:add-golangci-lint

Conversation

@ZwangaMukwevho
Copy link
Copy Markdown
Contributor

Before submitting your PR, make sure the boxes below are ticked:

  • I have run the linter (golangci-lint run) and fixed any issues.
  • I have run all existing tests and they pass.
  • I have added meaningful, concise commit messages, written in an imperative style ("Add files", "Fix logger", etc.).

Make sure to check the boxes below if they are applicable to the given situation (of course, it is not necessary to write tests when updating README etc.):

  • My PR includes tests, covering at least the bare minimum functionality.
  • I have updated documentation (README).
  • I have linked related issues.

Issue addressed:
42

@ZwangaMukwevho
Copy link
Copy Markdown
Contributor Author

Hi @Tackx 👋🏽,

I’ve added a basic .golangci.yml configuration and resolved the issues flagged by the enabled linters. Could you please take a look and let me know if there are any rules we should add or remove? Thanks!

Relating to issue: 42

Copy link
Copy Markdown
Contributor

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

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

I would expect golangci-lint to be launched with GitHub Actions then.

It can be addressed with another PR, of course.

But for now, this is great

Comment thread .golangci.yaml
Comment thread Makefile
ZwangaMukwevho and others added 2 commits July 9, 2025 11:40
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This was linked to issues Jul 9, 2025
@Tackx
Copy link
Copy Markdown
Member

Tackx commented Jul 9, 2025

Hi @ZwangaMukwevho, thank you for setting this up and correcting the present issues! I'll have a detailed look tomorrow or on Friday.

Thank you for your valuable insights @ccoVeille as well! It should definitely be part of the CI/CD - I think we will handle that internally as only we have access to running the pipelines.

@Tackx Tackx assigned Tackx and krixlion and unassigned Tackx Jul 9, 2025
Copy link
Copy Markdown
Contributor

@krixlion krixlion left a comment

Choose a reason for hiding this comment

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

Very nice PR, I'll be happy to approve once my comments are addressed.

Comment thread cmd/dish/cli_test.go
Comment thread pkg/socket/fetch.go
Comment thread pkg/socket/socket.go
Comment thread pkg/socket/socket.go Outdated
Comment thread pkg/socket/socket.go Outdated
Comment thread pkg/alert/telegram_test.go Outdated
Comment thread .golangci.yaml Outdated
@ZwangaMukwevho
Copy link
Copy Markdown
Contributor Author

Very nice PR, I'll be happy to approve once my comments are addressed.

Addressed the comments, feel free to have a look

Comment thread .golangci.yaml Outdated
Comment thread .golangci.yaml Outdated
@krixlion krixlion merged commit 299975c into thevxn:master Jul 17, 2025
5 checks passed
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.

Add golangci-lint.yml Fix golangci-lint issues

4 participants