3x-ui/internal/web/job
MHSanaei fa1a19c03c
style: adopt golangci-lint v2 and resolve all findings
Add .golangci.yml (v2): the standard linters plus bodyclose, errorlint, noctx, misspell, rowserrcheck, sqlclosecheck, unconvert, usestdlibvars, with gofumpt + goimports formatters. Enable the std-error-handling exclusion preset for idiomatic Close/Remove/Setenv ignores; scope-exclude SA1019 (parser.ParseDir in tools/openapigen) and ST1005 (intentional capitalized user-facing error copy that tests assert verbatim). No inline nolint directives were introduced.

Resolve all 217 findings behavior-preserving: gofumpt/goimports formatting, explicit blank assignment on intentionally ignored errors, errors.Is/errors.As and %w wrapping, context-aware stdlib calls (CommandContext/QueryContext/NewRequestWithContext/Dialer), staticcheck simplifications, removed redundant conversions, http.StatusOK and http.MethodGet, inlined the go:fix intPtr helper, and deferred sql rows Close. Add a golangci CI job mirroring the existing Go jobs.
2026-06-27 15:42:22 +02:00
..
check_client_ip_job.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
check_client_ip_job_integration_test.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
check_client_ip_job_test.go feat(online): use xray online-stats API for onlines and access-log-free IP limit 2026-06-11 19:42:03 +02:00
check_cpu_usage.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
check_hash_storage.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
check_hash_storage_test.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
check_memory_usage.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
check_xray_running_job.go feat(notifications): event bus architecture with Telegram and SMTP subscribers (#5326) 2026-06-15 21:03:41 +02:00
clear_logs_job.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
clear_logs_job_test.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
free_os_memory.go perf(memory): report real RSS and cut footprint via GOGC + periodic release 2026-06-25 22:16:38 +02:00
ldap_sync_job.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
mtproto_job.go feat(mtproto): route Telegram egress through Xray routing rules 2026-06-12 17:58:45 +02:00
node_heartbeat_job.go fix(jobs): isolate per-node background goroutines from panics (#5397) 2026-06-20 00:38:25 +02:00
node_traffic_sync_job.go Use efficient APIs and simplify loops 2026-06-23 14:12:28 +02:00
node_traffic_sync_job_test.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
outbound_subscription_job.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
periodic_traffic_reset_job.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
stats_notify_job.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
warp_ip_job.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
xray_traffic_job.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00