Repository navigation
pin golangci-lint version, fix linter errors - #2392
MichaelMraka wants to merge 3 commits into
Conversation
Centralize repeated Prometheus/API string literals so golangci-lint goconst passes after the Go 1.27 / linter bump.
Derive the shutdown timeout from the request context without inheriting cancellation, and drop the now-unneeded G118 exclusion.
Reviewer's GuideAPICentralize Prometheus metric namespaces, subsystems, and label names while preserving the existing exported metric names, and apply those constants across metric definitions and registration.
Route internal errors in the affected admin, database, and pprof handlers through a shared response helper without changing the returned status or JSON shape.
ImplementationUse shared constants for system inventory sort and search fields, including the stable export ordering.
Derive the server shutdown timeout from the request context without inheriting its cancellation, and remove the obsolete G118 linter exclusion.
ConfigurationPin the golangci-lint installation in the Docker build to v2.15.0.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2392 +/- ##
==========================================
- Coverage 66.82% 66.82% -0.01%
==========================================
Files 157 158 +1
Lines 9080 9081 +1
==========================================
Hits 6068 6068
- Misses 3010 3011 +1
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Pin the linter version and resolve lint findings while improving shared metrics definitions, shutdown handling, query configuration, and internal error responses.
Bug Fixes:
Enhancements:
Build: