Skip to content

Collect data from the Icinga 2 API #263

Collect data from the Icinga 2 API

Collect data from the Icinga 2 API #263

Triggered via pull request December 21, 2023 11:56
Status Failure
Total duration 36s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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)