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

Lint with golangci-lint #1843

Closed
estensen opened this issue Oct 30, 2022 · 3 comments
Closed

Lint with golangci-lint #1843

estensen opened this issue Oct 30, 2022 · 3 comments

Comments

@estensen
Copy link
Contributor

Running golangci-lint on my machine I find quite a few improvements. Would it be an idea to add the linter to CI and gradually remove warnings? I can add an Action for it.

@marten-seemann
Copy link
Contributor

We’re using our Unified CI setup. Using golangci-lint was discussed and we decided against it.

@MarcoPolo
Copy link
Contributor

I looked and I think I found these two references:

protocol/.github#41 (comment)

and

protocol/.github#6 (comment)

it seems like we don’t want everything from golangci-lint since sometimes it can be annoying. And it’s may lag behind releases on the underlying linters.

@marten-seemann
Copy link
Contributor

There’s also ipld/ipld#92, which contains a lot of discussion.

In addition to not being up to date, golangci-lint also sometimes breaks the underlying linters. See https://twitter.com/dominikhonnef/status/1530695446007521280 for an example.

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

No branches or pull requests

3 participants