From 7fcd6c939fefab63a2e6ba73d0f66f6c5896078e Mon Sep 17 00:00:00 2001 From: Dmitry Nikolaev Date: Fri, 6 Mar 2026 12:17:08 +0100 Subject: [PATCH] Fix linting Signed-off-by: Dmitry Nikolaev --- grafana/rmf-app/pkg/plugin/config.go | 4 ++-- grafana/rmf-app/pkg/plugin/dds/client.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grafana/rmf-app/pkg/plugin/config.go b/grafana/rmf-app/pkg/plugin/config.go index 902d011..04e1690 100644 --- a/grafana/rmf-app/pkg/plugin/config.go +++ b/grafana/rmf-app/pkg/plugin/config.go @@ -35,7 +35,7 @@ type Config struct { Timeout int CacheSize int Username string - Password string + Password string // #nosec G117 JSON struct { // Conventional Grafana HTTP config (see the `DataSourceHttpSettings` UI element) TimeoutRaw string `json:"timeout"` @@ -48,7 +48,7 @@ type Config struct { Port string `json:"port"` SSL bool `json:"ssl"` Username string `json:"userName"` - Password string `json:"password"` + Password string `json:"password"` // #nosec G117 SSLVerify bool `json:"skipVerify"` // NB: the meaning of JSON field is inverted. OmegamonDs string `json:"omegamonDs"` } diff --git a/grafana/rmf-app/pkg/plugin/dds/client.go b/grafana/rmf-app/pkg/plugin/dds/client.go index 011b208..e9da7a5 100644 --- a/grafana/rmf-app/pkg/plugin/dds/client.go +++ b/grafana/rmf-app/pkg/plugin/dds/client.go @@ -189,7 +189,7 @@ func (c *Client) GetRaw(path string, params ...string) ([]byte, error) { req.SetBasicAuth(c.username, c.password) } logger.Debug("requesting DDS data", "url", fullURL) - response, err := c.httpClient.Do(req) + response, err := c.httpClient.Do(req) // #nosec G704 if err != nil { logger.Debug("failed to fetch DDS data", "error", err) return nil, err