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

chore(lint): cleanup config and enable default linters for our code #764

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

qdm12
Copy link
Collaborator

@qdm12 qdm12 commented Jan 24, 2025

Why this should be merged

  • Leave linters as is for existing geth code
  • Enable default linters (errcheck, staticcheck were missing) + errorlint for our code only:
    • ./plugin directory
    • _ext.go files
    • More suggestions are welcome

More linters can be added subsequently, but this PR fixes already quite a few errors coming from enabling errchec, staticcheck and errorlint in the plugin directory.

How this works

  • Remove unused and unneeded configuration options
  • Existing geth code uses the same linters as before
  • No golangci-lint upgrade, wait for geth sync to upgrade the linter and get upstream lint error fixes
  • Our code is linted with more linters (default+errorlint)

How this was tested

  • Linter passing locally
  • CI passing

Need to be documented?

No

Need to update RELEASES.md?

No

@qdm12 qdm12 force-pushed the qdm12/linter-new-only branch 2 times, most recently from f9798f5 to 3eddab0 Compare January 30, 2025 12:18
@qdm12 qdm12 changed the title Linting: lint more on new code only chore(lint): cleanup config and enable default linters for our code Jan 30, 2025
@qdm12 qdm12 force-pushed the qdm12/linter-new-only branch from 3eddab0 to bff54b5 Compare January 30, 2025 12:32
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.

1 participant