Collect data from the Icinga 2 API #263
Annotations
10 errors
lint:
modules/icinga2/api.go#L29
sloppyLen: len(ApiEndpoints) <= 0 can be len(ApiEndpoints) == 0 (gocritic)
|
lint:
modules/icinga2/api.go#L6
File is not `goimports`-ed (goimports)
|
lint:
modules/icinga2/api.go#L21
var `ApiCred` should be `APICred` (golint)
|
lint:
modules/icinga2/api.go#L24
var `ApiEndpoints` should be `APIEndpoints` (golint)
|
lint:
modules/icinga2/api.go#L27
func InitApiCollection should be InitAPICollection (golint)
|
lint:
modules/icinga2/api.go#L78
G402: TLS InsecureSkipVerify set true. (gosec)
|
lint:
modules/icinga2/api.go#L32
expressions should not be cuddled with blocks (wsl)
|
lint:
modules/icinga2/api.go#L46
expressions should not be cuddled with blocks (wsl)
|
lint:
modules/icinga2/api.go#L65
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
lint:
modules/icinga2/api.go#L85
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|