alertmanager/notify
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
..
email Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
opsgenie Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
pagerduty Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
pushover Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
slack Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
sns Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
telegram Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
test Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
victorops Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
webhook Enable HTTP 2 again (#2720) 2021-11-10 17:28:47 +01:00
wechat Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
notify.go Adds: Active time interval (#2779) 2022-03-04 15:24:29 +01:00
notify_test.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
util.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
util_test.go notify: refactor code to retry requests (#1974) 2019-08-02 16:17:40 +02:00