0577ef6c57
Now that we have also added CollectAndLint and GatherAndLint, I thought we should bring CollectAndCount in line. So: - Add GatherAndCount. - Add filtering by metric name. - Add tests. Minor wart: CollectAndCount should now return `(int, error)`, but that would be a breaking change as the current version just returns `int`. I decided to let the new version panic when it should return an error. An error is anyway very unlikely, so the biggest annoyance here is really just the inconsistency. Signed-off-by: beorn7 <beorn@grafana.com> |
||
---|---|---|
.. | ||
promlint | ||
lint.go | ||
lint_test.go | ||
testutil.go | ||
testutil_test.go |