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

Enforce consistent linting rules #3723

Closed
ninabarbakadze opened this issue Jul 23, 2024 · 1 comment · Fixed by #3724
Closed

Enforce consistent linting rules #3723

ninabarbakadze opened this issue Jul 23, 2024 · 1 comment · Fixed by #3724
Assignees
Labels
WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc

Comments

@ninabarbakadze
Copy link
Member

          @ninabarbakadze 
~/Celestia/celestia-core on main *2 > make lint                                                                                                                                                     took 19s
--> Running linter
~/Celestia/celestia-core on main *2 >     

It's not showing anything locally. I guess that I have a different version.

Generally, if we want to enforce specific linting rule, we should add a workflow that runs the linter and complains if there are any changes to the repo. Otherwise, we will need to make this change manually every time, and not expect contributors to do it themselves.

Not blocking on this tho, thanks for handling it 🙏

Originally posted by @rach-id in #3720 (review)

@ninabarbakadze ninabarbakadze added WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc and removed needs:triage labels Jul 23, 2024
@rootulp
Copy link
Collaborator

rootulp commented Jul 23, 2024

@ninabarbakadze what golangci-lint version do you have installed locally? For me:

$ golangci-lint version
golangci-lint has version 1.59.0 built with go1.22.3 from 2059b18a on 2024-05-26T18:13:27Z

I think this issue may be resolvable by bumping golangci-lint in this repo / CI to use the latest version and then to recommend contributors to also use the latest version.

Latest seems to be https://github.com/golangci/golangci-lint/releases/tag/v1.59.1

@rootulp rootulp self-assigned this Jul 23, 2024
rootulp added a commit that referenced this issue Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants