Skip to content

Enable usestdlibvars linter and fix all violations#4978

Merged
denik merged 1 commit intomainfrom
denik/new-linter1
Apr 15, 2026
Merged

Enable usestdlibvars linter and fix all violations#4978
denik merged 1 commit intomainfrom
denik/new-linter1

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Apr 15, 2026

Summary

  • Enable the usestdlibvars golangci-lint linter, which detects places where Go standard library constants should be used instead of literal values
  • Auto-fixed all violations: HTTP method strings ("GET", "POST", etc.) replaced with http.Method* constants, and HTTP status codes (404, 409) replaced with http.Status* constants

Test plan

  • make checks fmt lint passes
  • All unit tests pass (5025 tests)
  • No new acceptance test failures

Add the usestdlibvars golangci-lint linter which detects places where
Go standard library constants should be used instead of literal values.
Auto-fixed all violations: HTTP method strings to http.Method* constants
and HTTP status code integers to http.Status* constants.

Task: 001.md

Co-authored-by: Isaac
@denik denik added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit 2705046 Apr 15, 2026
26 checks passed
@denik denik deleted the denik/new-linter1 branch April 15, 2026 14:04
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