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

linters: Bump golangci-lint version to v1.52.2 and fix issues #1169

Merged
merged 5 commits into from
Apr 27, 2023

Conversation

samuael
Copy link
Collaborator

@samuael samuael commented Apr 12, 2023

This pull request contains several fixes to the gocryptotrader codebase, including a fix for a linter issue, suppressing some linter issues by adding a linter directive, removing unnecessary linter directives, and changing some variable names to constants.

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as the item is complete.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested

  • go test ./... -race
  • golangci-lint run
  • Test X

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation and regenerated documentation via the documentation tool
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally and on Github Actions/AppVeyor with my changes
  • Any dependent changes have been merged and published in downstream modules

@samuael samuael changed the title Linter fix Linter Issues fix Apr 12, 2023
@samuael samuael changed the title Linter Issues fix Linter issues fix Apr 12, 2023
@gloriousCode gloriousCode requested a review from a team April 12, 2023 22:14
@gloriousCode gloriousCode added the review me This pull request is ready for review label Apr 12, 2023
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

Always nice to see you get more familiar with our codebase 🎉
You'll just need to be more specific with your nolints

exchanges/bitfinex/bitfinex_test.go Outdated Show resolved Hide resolved
currency/forexprovider/fixer.io/fixer_test.go Outdated Show resolved Hide resolved
database/repository/audit/audit_test.go Outdated Show resolved Hide resolved
database/repository/audit/audit_test.go Outdated Show resolved Hide resolved
database/repository/withdraw/withdraw_test.go Outdated Show resolved Hide resolved
exchanges/hitbtc/hitbtc_test.go Outdated Show resolved Hide resolved
exchanges/kline/kline_test.go Outdated Show resolved Hide resolved
exchanges/kline/kline_test.go Outdated Show resolved Hide resolved
exchanges/stream/buffer/buffer_test.go Outdated Show resolved Hide resolved
exchanges/zb/zb_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! Are you getting these linter issues from the most recent version? If so, can you please bump all versions for GitHub actions like linter.yml and else ware?

@samuael
Copy link
Collaborator Author

samuael commented Apr 12, 2023

Yes, I found these issues after upgrading my linter. golangci-lint v1.52.2 with go1.20.2.

Okay sir I will update the .github/workflows/linter.yml file with my next commit. After few minutes

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

Appveyor is complaining :

image

Could you please bump the versions for golanci-lint across the code base.

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

This is lovely. Thanks! 👍

Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

tACK! Thanks for making those changes

@gloriousCode gloriousCode added the gcrc GloriousCode Review Complete label Apr 16, 2023
@thrasher- thrasher- changed the title Linter issues fix linters: Bump golangci-lint version to v1.52.2 and fix issues Apr 27, 2023
Copy link
Collaborator

@thrasher- thrasher- left a comment

Choose a reason for hiding this comment

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

Nice work @samuael !

@thrasher- thrasher- merged commit 969669c into thrasher-corp:master Apr 27, 2023
@samuael
Copy link
Collaborator Author

samuael commented Apr 28, 2023

Thank you, sir.
and I want to give a big Thanks to @shazbert and @gloriousCode for your help on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gcrc GloriousCode Review Complete review me This pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants