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

ci(lint): upgrade golangci-lint to 1.56 and fix revive errors that emerged #3247

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

ramin
Copy link
Collaborator

@ramin ramin commented Mar 8, 2024

with our 1.22 upgrade i got inadvertently upgraded to golangci-lint 1.56 locally and experiencing different results to what was in CI so figured, why not upgrade, i believe this upgrade makes 'revive' active and a replacement to golint, which introduced some better/stricter checks

  • upgrades golangci-lint to 1.56
  • fixes or marks //nolint:revive a few new unused variable errors that were triggering
  • configures revive to ignore _test files
  • CI passes with new checks

Copy link
Contributor

@mastergaurang94 mastergaurang94 left a comment

Choose a reason for hiding this comment

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

same

@ramin ramin enabled auto-merge (squash) March 13, 2024 11:03
@ramin ramin merged commit 3b7fd16 into main Mar 13, 2024
24 checks passed
@ramin ramin deleted the ci/ramin/lint branch March 13, 2024 11:08
renaynay pushed a commit to renaynay/celestia-node that referenced this pull request Apr 3, 2024
…erged (celestiaorg#3247)

<!--
Thank you for submitting a pull request!

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

Please ensure you've addressed or included references to any related
issues.

Tips:
- Use keywords like "closes" or "fixes" followed by an issue number to
automatically close related issues when the PR is merged (e.g., "closes
#123" or "fixes #123").
- Describe the changes made in the PR.
- Ensure the PR has one of the required tags (kind:fix, kind:misc,
kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci,
kind:chore, kind:testing)

-->

with our `1.22` upgrade i got inadvertently upgraded to `golangci-lint`
1.56 locally and experiencing different results to what was in CI so
figured, why not upgrade, i believe this upgrade makes 'revive' active
and a replacement to golint, which introduced some better/stricter
checks

- upgrades `golangci-lint` to 1.56
- fixes or marks `//nolint:revive` a few new unused variable errors that
were triggering
- configures revive to ignore `_test` files
- CI passes with new checks
renaynay pushed a commit to renaynay/celestia-node that referenced this pull request Apr 3, 2024
…erged (celestiaorg#3247)

<!--
Thank you for submitting a pull request!

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

Please ensure you've addressed or included references to any related
issues.

Tips:
- Use keywords like "closes" or "fixes" followed by an issue number to
automatically close related issues when the PR is merged (e.g., "closes
#123" or "fixes #123").
- Describe the changes made in the PR.
- Ensure the PR has one of the required tags (kind:fix, kind:misc,
kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci,
kind:chore, kind:testing)

-->

with our `1.22` upgrade i got inadvertently upgraded to `golangci-lint`
1.56 locally and experiencing different results to what was in CI so
figured, why not upgrade, i believe this upgrade makes 'revive' active
and a replacement to golint, which introduced some better/stricter
checks

- upgrades `golangci-lint` to 1.56
- fixes or marks `//nolint:revive` a few new unused variable errors that
were triggering
- configures revive to ignore `_test` files
- CI passes with new checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:ci CI related PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants