-
Notifications
You must be signed in to change notification settings - Fork 2.2k
chore: Replace http.Method* constants with string literals #3696
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
Conversation
Updated all usages of http.Method* constants to use string literals for HTTP methods (e.g., "GET", "POST", etc.) throughout the codebase. Added forbidigo linter to enforce this rule and updated .golangci.yml accordingly. This change aligns with new linting requirements and ensures consistency in HTTP method usage.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3696 +/- ##
=======================================
Coverage 91.12% 91.12%
=======================================
Files 187 187
Lines 16640 16640
=======================================
Hits 15164 15164
Misses 1291 1291
Partials 185 185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thank you, @jferrl and @alexandear! |
@jferrl - I apologize - I spoke too soon. I forgot that another PR added |
Moved forbidigo linter rules to the main settings section for better organization and clarity. No changes to the actual forbidden patterns or messages.
Fixes: #3695. |
Updated all usages of http.Method* constants to use string literals for HTTP methods (e.g., "GET", "POST", etc.) throughout the codebase. Added forbidigo linter to enforce this rule and updated .golangci.yml accordingly. This change aligns with new linting requirements and ensures consistency in HTTP method usage.