1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/cmd
Kristoffer Dalby d2aca10195 all: apply golangci-lint fixes
Add nolint directives for intentionally skipped issues:

- gosec G115: safe integer conversions (NodeID, UserID, port numbers)
- gosec G404: weak random acceptable for jitter (non-crypto use)
- gosec G306/G110: test infrastructure file operations
- noinlineerr: idiomatic inline error handling patterns
- thelper: inline test closures (not reusable helpers)
- staticcheck SA1019: deprecated gRPC and Docker APIs still functional
- testifylint: assert.TestingT interface limitations

Add t.Helper() to actual test helper functions:

- printCurrentRouteMap in route_test.go
- runInteractiveWorkflowTest in auth_test.go
- validateCompleteRegistrationResponse in auth_test.go

Fix unused parameter:

- Rename unused originalReq to _ in validateCompleteRegistrationResponse

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 12:27:04 +00:00
..
headscale all: apply golangci-lint fixes 2026-02-06 12:27:04 +00:00
hi all: apply golangci-lint fixes 2026-02-06 12:27:04 +00:00
mapresponses all: apply golangci-lint fixes 2026-02-06 06:54:44 +00:00