Matthias Loibl
|
a6d10bd5bc
|
Update golangci-lint and fix complaints (#2853)
* Copy latest golangci-lint files from Prometheus
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Use grafana/regexp over stdlib regexp
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Fix typos in comments
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Fix goimports complains in import sorting
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* gofumpt all Go files
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Update naming to comply with revive linter
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* config: Fix error messages to be lower case
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* test/cli: Fix error messages to be lower case
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* .golangci.yaml: Remove obsolete space
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* config: Fix expected victorOps error
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Use stdlib regexp
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Clean up Go modules
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
|
2022-03-25 17:59:51 +01:00 |
Ben Ridley
|
d0217a80b0
|
Add JSON marshalling and unmarshalling support for time intervals
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
24804e6b09
|
Improve comment fomatting
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
1cc736c4c8
|
Return from errors earlier
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
fb60329aad
|
Add fullstops to comments
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
2c5c17a16a
|
Update timeinterval/timeinterval.go
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
2c86b696c9
|
Prevent clamping dates that start after the end of the month
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:02 +11:00 |
Ben Ridley
|
adf94c3168
|
Correct errors, test for specific error messages, improve formatting
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:01 +11:00 |
Ben Ridley
|
4c881ef5fb
|
Tidy up error message formatting
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:01 +11:00 |
Ben Ridley
|
e052540c92
|
Add license header
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:01 +11:00 |
Ben Ridley
|
11c24d4ae6
|
Correct case from renaming
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:01 +11:00 |
Ben Ridley
|
a3cb125e5c
|
Move timeinterval library into locally maintained package
Signed-off-by: Ben Ridley <benridley29@gmail.com>
|
2021-03-01 08:30:01 +11:00 |