Ben Kochie
f656273159
Enable modernize linter ( #4750 )
...
Enable the golangci-lint modernize linter.
* Add exception for the omitempty struct issue.
* Apply modernize fixes.
Signed-off-by: SuperQ <superq@gmail.com >
2025-11-18 11:46:15 +01:00
Solomon Jacobs
023885c52c
chore: modernize with range over int ( #4746 )
...
A purely mechanical change with no effect on behaviour. Stops `gopls`
from complaining.
Corresponding spec, see here:
https://github.com/golang/go/issues/61405
Introduced in `Go 1.22`, see here:
https://go.dev/ref/spec#For_range
Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com >
2025-11-18 09:43:43 +01:00
promalert
7d6cebe45a
refactor: use b.Loop() to simplify the code and improve performance ( #4642 )
...
Signed-off-by: promalert <promalert@outlook.com >
2025-11-03 21:47:20 +01:00
Matthieu MOREL
31b64f6a00
chore: bump golangci-lint to v2.3.0
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-08-01 23:40:52 +02:00
George Robinson
df5b75820d
Add more unit tests for lexer scan
...
Signed-off-by: George Robinson <george.robinson@grafana.com >
2025-03-30 10:56:30 +01:00
George Robinson
ec9a21e127
Add tests for regex character classes ( #4155 )
...
Signed-off-by: George Robinson <george.robinson@grafana.com >
2024-12-06 13:34:21 +00:00
George Robinson
52eb1fc4aa
Rename matchers package to matcher singular ( #3777 )
...
* Rename matchers package to matcher singular
I realized that we had named the package plural "matchers" when
its idiomatic in Go to use singular package names.
---------
Signed-off-by: George Robinson <george.robinson@grafana.com >
2024-06-21 16:17:27 +02:00