prometheus/rules
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
..
fixtures Optimise concurrent rule evaluation for rules querying ALERTS and ALERTS_FOR_STATE (#17064) 2025-08-21 16:57:57 +02:00
alerting.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
alerting_test.go Make metric/label name validation scheme explicit (#16928) 2025-08-18 08:09:00 +00:00
group.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
group_test.go [TESTS] Rules: remove brittle TestNewGroup 2025-06-23 15:34:03 +01:00
manager.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
manager_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
origin.go Decouple ruler dependency controller from concurrency controller 2024-02-02 10:06:37 +01:00
origin_test.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
recording.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
recording_test.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
rule.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00