prometheus/discovery/openstack
beorn7 747c5ee2b1 Apply analyzer "modernize" to the whole codebase
See
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
for details.

This ran into a few issues (arguably bugs in the modernize tool),
which I will fix in the next commit, so that we have transparency what
was done automatically.

Beyond those hiccups, I believe all the changes applied are
legitimate. Even where there might be no tangible direct gain, I would
argue it's still better to use the "modern" way to avoid micro
discussions in tiny style PRs later.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-08-27 14:48:41 +02:00
..
hypervisor.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
hypervisor_test.go fix: use "ErrorContains" or "EqualError" instead of "Contains(t, err.Error()" and "Equal(t, err.Error()" (#15094) 2024-10-06 16:35:29 +00:00
instance.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
instance_test.go discovery: move openstack floating ips function from deprecated Compute API /os-floating-ips to Network API /floatingips (#14367) 2025-01-21 11:40:15 +01:00
loadbalancer.go refactor[discovery, tsdb]: simplify error handling and remove redundant checks (#16328) 2025-03-27 12:20:59 +01:00
loadbalancer_test.go fix: fix testing 2025-01-21 11:18:34 +00:00
metrics.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
mock_test.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
openstack.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00