Content-Length: 319285 | pFad | http://github.com/razorpay/razorpay-mcp-server/pull/26

9E feat: upgrade golangci-lint to v2 by radar07 · Pull Request #26 · razorpay/razorpay-mcp-server · GitHub
Skip to content

feat: upgrade golangci-lint to v2 #26

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

radar07
Copy link

@radar07 radar07 commented May 15, 2025

Description

Related Issues

Type of Change

  • 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)
  • Refactoring (no functional changes, code improvements only)
  • Documentation update
  • Performance improvement

Testing

  • Manual testing
  • Added unit tests
  • Added integration tests (if applicable)
  • All tests pass locally

Checklist

  • I have followed the code style of this project
  • I have added comments to code where necessary, particularly in hard-to-understand areas
  • I have updated the documentation where necessary
  • I have verified that my changes do not introduce new warnings or errors
  • I have checked for and resolved any merge conflicts
  • I have considered the performance implications of my changes

Additional Information

This upgrade the golangci-lint from v1 to v2 and migrates the .golangci.yaml. This is derived from my contribution to the github-mcp-server which does the same thing.

While upgrading the golangci-lint to v2, I noticed there are a few warnings produced by the errcheck and other linters from the test files. I have ignored the warnings for now and would love to hear some feedback..

@radar07 radar07 requested a review from stuckinforloop May 16, 2025 17:40
resp, err = client.Post(server.URL+tc.path,
"application/json", nil)
}
assert.NoError(t, err)
defer resp.Body.Close()
defer resp.Body.Close() // nolint:errcheck
Copy link
Member

Choose a reason for hiding this comment

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

how can u avoid these no lint

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, I need to fix this but unsure on how to do this like mentioned in the description. I'll try out something and we can talk through it.

Oh, I missed the go mod checks in the workflow. I'll fix it right away.

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/razorpay/razorpay-mcp-server/pull/26

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy