Skip to content

Push on main

Push on main #27

GitHub Actions / golangci failed Jan 18, 2024 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (50)

apigee/proxies_service.go|428 col 40| resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
apigee/proxies_service.go|431 col 10| resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
apigee/proxies_service.go|465 col 40| resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
cmd/bindings/bindings.go|94 col 16| b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
cmd/bindings/bindings.go|100 col 17| b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
cmd/bindings/bindings.go|118 col 16| b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
cmd/provision/config.go|48 col 24| p.InternalProxyURL undefined (type *provision has no field or method InternalProxyURL) (typecheck)
cmd/provision/config.go|49 col 24| p.RemoteServiceProxyURL undefined (type *provision has no field or method RemoteServiceProxyURL) (typecheck)
cmd/provision/config.go|50 col 24| p.Org undefined (type *provision has no field or method Org) (typecheck)
cmd/provision/config.go|51 col 24| p.Env undefined (type *provision has no field or method Env) (typecheck)
cmd/provision/config.go|53 col 31| p.InsecureSkipVerify undefined (type *provision has no field or method InsecureSkipVerify) (typecheck)
cmd/provision/config.go|57 col 22| p.GetTokenURL undefined (type *provision has no field or method GetTokenURL) (typecheck)
cmd/provision/config.go|68 col 7| p.IsGCPManaged undefined (type *provision has no field or method IsGCPManaged) (typecheck)
cmd/provision/config.go|73 col 7| p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
cmd/provision/config.go|83 col 17| undeclared name: yaml (typecheck)
cmd/provision/config.go|97 col 17| p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
cmd/provision/config.go|103 col 16| undeclared name: yaml (typecheck)
cmd/provision/config.go|117 col 54| p.Org undefined (type *provision has no field or method Org) (typecheck)
cmd/provision/config.go|118 col 18| p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
cmd/provision/config.go|136 col 57| p.Org undefined (type *provision has no field or method Org) (typecheck)
cmd/provision/config.go|137 col 18| p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
cmd/provision/config.go|152 col 7| p.IsLegacySaaS undefined (type *provision has no field or method IsLegacySaaS) (typecheck)
cmd/provision/config.go|155 col 7| p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
cmd/provision/config.go|247 col 15| p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
cmd/provision/config.go|252 col 15| p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
cmd/provision/config.go|264 col 15| p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
cmd/provision/legacy.go|71 col 58| p.RuntimeBase undefined (type *provision has no field or method RuntimeBase) (typecheck)
cmd/provision/legacy.go|75 col 37| p.ManagementBase undefined (type *provision has no field or method ManagementBase) (typecheck)
cmd/provision/legacy.go|82 col 15| p.ManagementBase undefined (type *provision has no field or method ManagementBase) (typecheck)
cmd/provision/legacy.go|116 col 37| p.CreateJWKS undefined (type *provision has no field or method CreateJWKS) (typecheck)
cmd/provision/legacy.go|193 col 60| p.InternalProxyURL undefined (type *provision has no field or method InternalProxyURL) (typecheck)
cmd/provision/legacy.go|220 col 7| p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
cmd/provision/legacy.go|221 col 58| p.InternalProxyURL undefined (type *provision has no field or method InternalProxyURL) (typecheck)
cmd/provision/provision.go|82 col 10| p.IsGCPManaged undefined (type *provision has no field or method IsGCPManaged) (typecheck)
cmd/provision/provision.go|89 col 9| p.IsGCPManaged undefined (type *provision has no field or method IsGCPManaged) (typecheck)
cmd/provision/provision.go|135 col 7| p.Verbose undefined (type *provision has no field or method Verbose) (typecheck)
cmd/provision/provision.go|203 col 19| p.RuntimeBase undefined (type *provision has no field or method RuntimeBase) (typecheck)
cmd/provision/provision.go|265 col 14| p.ServerConfig undefined (type *provision has no field or method ServerConfig) (typecheck)
cmd/provision/provision.go|281 col 37| p.CreateNewKey undefined (type *provision has no field or method CreateNewKey) (typecheck)
cmd/provision/provision.go|289 col 20| p.RotateJWKS undefined (type *provision has no field or method RotateJWKS) (typecheck)
cmd/provision/provision.go|492 col 7| p.IsLegacySaaS undefined (type *provision has no field or method IsLegacySaaS) (typecheck)
cmd/provision/provision.go|526 col 21| p.GetCertsURL undefined (type *provision has no field or method GetCertsURL) (typecheck)
cmd/provision/provision.go|529 col 20| p.GetProductsURL undefined (type *provision has no field or method GetProductsURL) (typecheck)
cmd/provision/provision.go|532 col 23| p.GetVerifyAPIKeyURL undefined (type *provision has no field or method GetVerifyAPIKeyURL) (typecheck)
cmd/provision/provision.go|548 col 17| p.GetQuotasURL undefined (type *provision has no field or method GetQuotasURL) (typecheck)
cmd/provision/proxy.go|77 col 67| p.Env undefined (type *provision has no field or method Env) (typecheck)
cmd/provision/proxy.go|79 col 74| p.Env undefined (type *provision has no field or method Env) (typecheck)
cmd/provision/proxy.go|113 col 8| p.Verbose undefined (type *provision has no field or method Verbose) (typecheck)
cmd/provision/proxy.go|114 col 15| p.ClientOpts undefined (type *provision has no field or method ClientOpts) (typecheck)
cmd/provision/config_test.go|56 col 36| p.CreateNewKey undefined (type *provision has no field or method CreateNewKey) (typecheck)

Filtered Findings (0)

Annotations

Check failure on line 428 in apigee/proxies_service.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] apigee/proxies_service.go#L428

resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
Raw output
apigee/proxies_service.go:428:40: resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
	if err != nil && (resp == nil || resp.StatusCode == http.StatusUnauthorized || resp.StatusCode == http.StatusForbidden) {
	                                      ^

Check failure on line 431 in apigee/proxies_service.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] apigee/proxies_service.go#L431

resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
Raw output
apigee/proxies_service.go:431:10: resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
	if resp.StatusCode == http.StatusNotFound || resp.StatusCode == http.StatusBadRequest {
	        ^

Check failure on line 465 in apigee/proxies_service.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] apigee/proxies_service.go#L465

resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
Raw output
apigee/proxies_service.go:465:40: resp.StatusCode undefined (type *Response has no field or method StatusCode) (typecheck)
	if err != nil && (resp == nil || resp.StatusCode == http.StatusUnauthorized || resp.StatusCode == http.StatusForbidden) {
	                                      ^

Check failure on line 94 in cmd/bindings/bindings.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/bindings/bindings.go#L94

b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
Raw output
cmd/bindings/bindings.go:94:16: b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
	req, err := b.ApigeeClient.NewRequestNoEnv(http.MethodGet, path, nil)
	              ^

Check failure on line 100 in cmd/bindings/bindings.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/bindings/bindings.go#L100

b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
Raw output
cmd/bindings/bindings.go:100:17: b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
	resp, err := b.ApigeeClient.Do(req, p)
	               ^

Check failure on line 118 in cmd/bindings/bindings.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/bindings/bindings.go#L118

b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
Raw output
cmd/bindings/bindings.go:118:16: b.ApigeeClient undefined (type *bindings has no field or method ApigeeClient) (typecheck)
	req, err := b.ApigeeClient.NewRequestNoEnv(http.MethodGet, productsURLFormat, nil)
	              ^

Check failure on line 48 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L48

p.InternalProxyURL undefined (type *provision has no field or method InternalProxyURL) (typecheck)
Raw output
cmd/provision/config.go:48:24: p.InternalProxyURL undefined (type *provision has no field or method InternalProxyURL) (typecheck)
			InternalAPI:      p.InternalProxyURL,
			                    ^

Check failure on line 49 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L49

p.RemoteServiceProxyURL undefined (type *provision has no field or method RemoteServiceProxyURL) (typecheck)
Raw output
cmd/provision/config.go:49:24: p.RemoteServiceProxyURL undefined (type *provision has no field or method RemoteServiceProxyURL) (typecheck)
			RemoteServiceAPI: p.RemoteServiceProxyURL,
			                    ^

Check failure on line 50 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L50

p.Org undefined (type *provision has no field or method Org) (typecheck)
Raw output
cmd/provision/config.go:50:24: p.Org undefined (type *provision has no field or method Org) (typecheck)
			OrgName:          p.Org,
			                    ^

Check failure on line 51 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L51

p.Env undefined (type *provision has no field or method Env) (typecheck)
Raw output
cmd/provision/config.go:51:24: p.Env undefined (type *provision has no field or method Env) (typecheck)
			EnvName:          p.Env,
			                    ^

Check failure on line 53 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L53

p.InsecureSkipVerify undefined (type *provision has no field or method InsecureSkipVerify) (typecheck)
Raw output
cmd/provision/config.go:53:31: p.InsecureSkipVerify undefined (type *provision has no field or method InsecureSkipVerify) (typecheck)
				AllowUnverifiedSSLCert: p.InsecureSkipVerify,
				                          ^

Check failure on line 57 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L57

p.GetTokenURL undefined (type *provision has no field or method GetTokenURL) (typecheck)
Raw output
cmd/provision/config.go:57:22: p.GetTokenURL undefined (type *provision has no field or method GetTokenURL) (typecheck)
			JWTProviderKey: p.GetTokenURL(),
			                  ^

Check failure on line 68 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L68

p.IsGCPManaged undefined (type *provision has no field or method IsGCPManaged) (typecheck)
Raw output
cmd/provision/config.go:68:7: p.IsGCPManaged undefined (type *provision has no field or method IsGCPManaged) (typecheck)
	if p.IsGCPManaged {
	     ^

Check failure on line 73 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L73

p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
Raw output
cmd/provision/config.go:73:7: p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
	if p.IsOPDK {
	     ^

Check failure on line 83 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L83

undeclared name: `yaml` (typecheck)
Raw output
cmd/provision/config.go:83:17: undeclared name: `yaml` (typecheck)
	yamlEncoder := yaml.NewEncoder(&yamlBuffer)
	               ^

Check failure on line 97 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L97

p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
Raw output
cmd/provision/config.go:97:17: p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
			Namespace: p.Namespace,
			             ^

Check failure on line 103 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L103

undeclared name: `yaml` (typecheck)
Raw output
cmd/provision/config.go:103:16: undeclared name: `yaml` (typecheck)
	yamlEncoder = yaml.NewEncoder(&yamlBuffer)
	              ^

Check failure on line 117 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L117

p.Org undefined (type *provision has no field or method Org) (typecheck)
Raw output
cmd/provision/config.go:117:54: p.Org undefined (type *provision has no field or method Org) (typecheck)
				Name:      fmt.Sprintf(policySecretNameFormat, p.Org, p.Env),
				                                                 ^

Check failure on line 118 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L118

p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
Raw output
cmd/provision/config.go:118:18: p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
				Namespace: p.Namespace,
				             ^

Check failure on line 136 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L136

p.Org undefined (type *provision has no field or method Org) (typecheck)
Raw output
cmd/provision/config.go:136:57: p.Org undefined (type *provision has no field or method Org) (typecheck)
				Name:      fmt.Sprintf(analyticsSecretNameFormat, p.Org, p.Env),
				                                                    ^

Check failure on line 137 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L137

p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
Raw output
cmd/provision/config.go:137:18: p.Namespace undefined (type *provision has no field or method Namespace) (typecheck)
				Namespace: p.Namespace,
				             ^

Check failure on line 152 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L152

p.IsLegacySaaS undefined (type *provision has no field or method IsLegacySaaS) (typecheck)
Raw output
cmd/provision/config.go:152:7: p.IsLegacySaaS undefined (type *provision has no field or method IsLegacySaaS) (typecheck)
	if p.IsLegacySaaS {
	     ^

Check failure on line 155 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L155

p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
Raw output
cmd/provision/config.go:155:7: p.IsOPDK undefined (type *provision has no field or method IsOPDK) (typecheck)
	if p.IsOPDK {
	     ^

Check failure on line 247 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L247

p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
Raw output
cmd/provision/config.go:247:15: p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
	req, err = p.ApigeeClient.NewRequest(http.MethodPut, fmt.Sprintf(propertysetGETOrPUTURL, "remote-service"), bytes.NewReader(props))
	             ^

Check failure on line 252 in cmd/provision/config.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] cmd/provision/config.go#L252

p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
Raw output
cmd/provision/config.go:252:15: p.ApigeeClient undefined (type *provision has no field or method ApigeeClient) (typecheck)
	res, err = p.ApigeeClient.Do(req, nil)
	             ^