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 golangci-lint #134

Merged
merged 6 commits into from
Dec 9, 2023
Merged

Add golangci-lint #134

merged 6 commits into from
Dec 9, 2023

Conversation

chris124567
Copy link
Member

@chris124567 chris124567 commented Dec 6, 2023

I have been adding this to our repos so we can do things like check struct tags automatically. I know core is still changing so if this is unwanted right now please feel free to close this PR.

Edit: Need to do some Ledger review fixes today. Will fix remaining warnings tomorrow.

consensus/state.go Outdated Show resolved Hide resolved
@lukechampine
Copy link
Member

Let's disable modifies-value-receiver and indent-error-flow. if-return is stupid too (it makes refactoring more annoying) but I guess it's situational, and it only comes up in smux which I don't care about.

@n8maninger
Copy link
Member

IIRC, we fixed the CI fail on Windows by adding the following step:

- name: Configure git # required for golangci-lint on Windows
  run: git config --global core.autocrlf false

@lukechampine lukechampine merged commit 62eed6d into master Dec 9, 2023
6 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.

3 participants