Skip to content

Reenable staticcheck and fix linting errors #2065

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

Merged
merged 2 commits into from
May 8, 2025

Conversation

mbroshi-stripe
Copy link
Contributor

@mbroshi-stripe mbroshi-stripe commented May 5, 2025

Why?

I needed to temporarily disable the staticcheck unused variable check before stripe.Client went live. It's live now.

What?

  • Reenable the unused variable staticcheck check
  • Always do params nil-check first to prevent possible nil-pointer dereference
  • Clean up some variable names

See Also

@mbroshi-stripe mbroshi-stripe requested a review from a team as a code owner May 5, 2025 21:31
@mbroshi-stripe mbroshi-stripe requested review from prathmesh-stripe and removed request for a team May 5, 2025 21:31
Copy link
Contributor

@prathmesh-stripe prathmesh-stripe left a comment

Choose a reason for hiding this comment

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

👍 but CI Lint is now failing

@mbroshi-stripe mbroshi-stripe changed the title Reenable staticcheck U1000 Reenable staticcheck and fix linting errors May 6, 2025
@mbroshi-stripe mbroshi-stripe merged commit 60506e0 into master May 8, 2025
10 checks passed
@mbroshi-stripe mbroshi-stripe deleted the mbroshi/reenable-u1000 branch May 8, 2025 17:02
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.

2 participants