Push on main #53
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (7)
server/config.go|175 col 13| undeclared name: yaml
(typecheck)
server/config.go|182 col 14| undeclared name: yaml
(typecheck)
server/config.go|211 col 12| undeclared name: yaml
(typecheck)
server/util.go|60 col 1| missing return (typecheck)
server/kube_health_test.go|84 col 2| req declared but not used (typecheck)
server/config.go|35 col 2| "gopkg.in/yaml.v3" imported but not used (typecheck)
server/config_test.go|28 col 2| "gopkg.in/yaml.v3" imported but not used (typecheck)
Filtered Findings (0)
Annotations
Check failure on line 175 in server/config.go
github-actions / golangci
[golangci] server/config.go#L175
undeclared name: `yaml` (typecheck)
Raw output
server/config.go:175:13: undeclared name: `yaml` (typecheck)
decoder := yaml.NewDecoder(bytes.NewReader(yamlFile))
^
Check failure on line 182 in server/config.go
github-actions / golangci
[golangci] server/config.go#L182
undeclared name: `yaml` (typecheck)
Raw output
server/config.go:182:14: undeclared name: `yaml` (typecheck)
if err = yaml.Unmarshal(configBytes, c); err != nil {
^
Check failure on line 211 in server/config.go
github-actions / golangci
[golangci] server/config.go#L211
undeclared name: `yaml` (typecheck)
Raw output
server/config.go:211:12: undeclared name: `yaml` (typecheck)
if err = yaml.Unmarshal(yamlFile, c); err != nil {
^
Check failure on line 60 in server/util.go
github-actions / golangci
[golangci] server/util.go#L60
missing return (typecheck)
Raw output
server/util.go:60:1: missing return (typecheck)
}
^
Check failure on line 84 in server/kube_health_test.go
github-actions / golangci
[golangci] server/kube_health_test.go#L84
req declared but not used (typecheck)
Raw output
server/kube_health_test.go:84:2: req declared but not used (typecheck)
req := httptest.NewRequest("GET", "/", nil)
^
Check failure on line 35 in server/config.go
github-actions / golangci
[golangci] server/config.go#L35
"gopkg.in/yaml.v3" imported but not used (typecheck)
Raw output
server/config.go:35:2: "gopkg.in/yaml.v3" imported but not used (typecheck)
"gopkg.in/yaml.v3"
^
Check failure on line 28 in server/config_test.go
github-actions / golangci
[golangci] server/config_test.go#L28
"gopkg.in/yaml.v3" imported but not used (typecheck)
Raw output
server/config_test.go:28:2: "gopkg.in/yaml.v3" imported but not used (typecheck)
"gopkg.in/yaml.v3"
^